类 IdListPalette<T>

  • 所有已实现的接口:
    Palette<T>

    public class IdListPalette<T>
    extends Object
    implements Palette<T>
    Mappings:
    Namespace Name
    official cls
    intermediary net/minecraft/class_2816
    named net/minecraft/world/chunk/IdListPalette
    • 字段详细资料

      • idList

        private final IdList<T> idList
        Mappings:
        Namespace Name Mixin selector
        official a Lcls;a:Lgl;
        intermediary field_12828 Lnet/minecraft/class_2816;field_12828:Lnet/minecraft/class_2361;
        named idList Lnet/minecraft/world/chunk/IdListPalette;idList:Lnet/minecraft/util/collection/IdList;
      • defaultValue

        private final T defaultValue
        Mappings:
        Namespace Name Mixin selector
        official b Lcls;b:Ljava/lang/Object;
        intermediary field_12829 Lnet/minecraft/class_2816;field_12829:Ljava/lang/Object;
        named defaultValue Lnet/minecraft/world/chunk/IdListPalette;defaultValue:Ljava/lang/Object;
    • 构造器详细资料

      • IdListPalette

        public IdListPalette​(IdList<T> idList,
                             T defaultValue)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcls;<init>(Lgl;Ljava/lang/Object;)V
        intermediary <init> Lnet/minecraft/class_2816;<init>(Lnet/minecraft/class_2361;Ljava/lang/Object;)V
        named <init> Lnet/minecraft/world/chunk/IdListPalette;<init>(Lnet/minecraft/util/collection/IdList;Ljava/lang/Object;)V
    • 方法详细资料

      • getIndex

        public int getIndex​(T object)
        指定者:
        getIndex 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a(Ljava/lang/Object;)I
        intermediary method_12291 Lnet/minecraft/class_2837;method_12291(Ljava/lang/Object;)I
        named getIndex Lnet/minecraft/world/chunk/Palette;getIndex(Ljava/lang/Object;)I
      • accepts

        public boolean accepts​(Predicate<T> predicate)
        指定者:
        accepts 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a(Ljava/util/function/Predicate;)Z
        intermediary method_19525 Lnet/minecraft/class_2837;method_19525(Ljava/util/function/Predicate;)Z
        named accepts Lnet/minecraft/world/chunk/Palette;accepts(Ljava/util/function/Predicate;)Z
      • getByIndex

        public T getByIndex​(int index)
        指定者:
        getByIndex 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a(I)Ljava/lang/Object;
        intermediary method_12288 Lnet/minecraft/class_2837;method_12288(I)Ljava/lang/Object;
        named getByIndex Lnet/minecraft/world/chunk/Palette;getByIndex(I)Ljava/lang/Object;
      • fromPacket

        public void fromPacket​(PacketByteBuf buf)
        指定者:
        fromPacket 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a(Lob;)V
        intermediary method_12289 Lnet/minecraft/class_2837;method_12289(Lnet/minecraft/class_2540;)V
        named fromPacket Lnet/minecraft/world/chunk/Palette;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
      • toPacket

        public void toPacket​(PacketByteBuf buf)
        指定者:
        toPacket 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official b Lcma;b(Lob;)V
        intermediary method_12287 Lnet/minecraft/class_2837;method_12287(Lnet/minecraft/class_2540;)V
        named toPacket Lnet/minecraft/world/chunk/Palette;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
      • getPacketSize

        public int getPacketSize()
        指定者:
        getPacketSize 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a()I
        intermediary method_12290 Lnet/minecraft/class_2837;method_12290()I
        named getPacketSize Lnet/minecraft/world/chunk/Palette;getPacketSize()I
      • getIndexBits

        public int getIndexBits()
        指定者:
        getIndexBits 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official b Lcma;b()I
        intermediary method_12197 Lnet/minecraft/class_2837;method_12197()I
        named getIndexBits Lnet/minecraft/world/chunk/Palette;getIndexBits()I
      • readNbt

        public void readNbt​(ListTag nbt)
        指定者:
        readNbt 在接口中 Palette<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lcma;a(Lnb;)V
        intermediary method_12286 Lnet/minecraft/class_2837;method_12286(Lnet/minecraft/class_2499;)V
        named readNbt Lnet/minecraft/world/chunk/Palette;readNbt(Lnet/minecraft/nbt/ListTag;)V