类 Texts


  • public class Texts
    extends Object
    Mappings:
    Namespace Name
    official oo
    intermediary net/minecraft/class_2564
    named net/minecraft/text/Texts
    • 构造器详细资料

      • Texts

        public Texts()
    • 方法详细资料

      • setStyleIfAbsent

        public static MutableText setStyleIfAbsent​(MutableText text,
                                                   Style style)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Lot;Lox;)Lot;
        intermediary method_10889 Lnet/minecraft/class_2564;method_10889(Lnet/minecraft/class_5250;Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;
        named setStyleIfAbsent Lnet/minecraft/text/Texts;setStyleIfAbsent(Lnet/minecraft/text/MutableText;Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
      • parse

        public static MutableText parse​(@Nullable
                                        @Nullable ServerCommandSource source,
                                        Text text,
                                        @Nullable
                                        @Nullable Entity sender,
                                        int depth)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Ldg;Lon;Lasl;I)Lot;
        intermediary method_10881 Lnet/minecraft/class_2564;method_10881(Lnet/minecraft/class_2168;Lnet/minecraft/class_2561;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
        named parse Lnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Text;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
      • parseStyle

        private static Style parseStyle​(@Nullable
                                        @Nullable ServerCommandSource source,
                                        Style style,
                                        @Nullable
                                        @Nullable Entity sender,
                                        int depth)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Ldg;Lox;Lasl;I)Lox;
        intermediary method_27663 Lnet/minecraft/class_2564;method_27663(Lnet/minecraft/class_2168;Lnet/minecraft/class_2583;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2583;
        named parseStyle Lnet/minecraft/text/Texts;parseStyle(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Style;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/Style;
      • toText

        public static Text toText​(com.mojang.authlib.GameProfile profile)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Lcom/mojang/authlib/GameProfile;)Lon;
        intermediary method_10882 Lnet/minecraft/class_2564;method_10882(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_2561;
        named toText Lnet/minecraft/text/Texts;toText(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;
      • joinOrdered

        public static Text joinOrdered​(Collection<String> strings)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Ljava/util/Collection;)Lon;
        intermediary method_10888 Lnet/minecraft/class_2564;method_10888(Ljava/util/Collection;)Lnet/minecraft/class_2561;
        named joinOrdered Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;)Lnet/minecraft/text/Text;
      • joinOrdered

        public static <T extends Comparable<T>> Text joinOrdered​(Collection<T> elements,
                                                                 Function<T,​Text> transformer)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Ljava/util/Collection;Ljava/util/function/Function;)Lon;
        intermediary method_10887 Lnet/minecraft/class_2564;method_10887(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;
        named joinOrdered Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;
      • join

        public static <T> MutableText join​(Collection<T> elements,
                                           Function<T,​Text> transformer)
        Mappings:
        Namespace Name Mixin selector
        official b Loo;b(Ljava/util/Collection;Ljava/util/function/Function;)Lot;
        intermediary method_10884 Lnet/minecraft/class_2564;method_10884(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_5250;
        named join Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;
      • bracketed

        public static MutableText bracketed​(Text text)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Lon;)Lot;
        intermediary method_10885 Lnet/minecraft/class_2564;method_10885(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;
        named bracketed Lnet/minecraft/text/Texts;bracketed(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;
      • toText

        public static Text toText​(com.mojang.brigadier.Message message)
        Mappings:
        Namespace Name Mixin selector
        official a Loo;a(Lcom/mojang/brigadier/Message;)Lon;
        intermediary method_10883 Lnet/minecraft/class_2564;method_10883(Lcom/mojang/brigadier/Message;)Lnet/minecraft/class_2561;
        named toText Lnet/minecraft/text/Texts;toText(Lcom/mojang/brigadier/Message;)Lnet/minecraft/text/Text;