类 IdList<T>

  • 所有已实现的接口:
    Iterable<T>, IndexedIterable<T>

    public class IdList<T>
    extends Object
    implements IndexedIterable<T>
    Mappings:
    Namespace Name
    official gl
    intermediary net/minecraft/class_2361
    named net/minecraft/util/collection/IdList
    • 字段详细资料

      • field_33088

        public static final int field_33088
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lgl;a:I
        intermediary field_33088 Lnet/minecraft/class_2361;field_33088:I
        named field_33088 Lnet/minecraft/util/collection/IdList;field_33088:I
      • nextId

        private int nextId
        Mappings:
        Namespace Name Mixin selector
        official b Lgl;b:I
        intermediary field_11099 Lnet/minecraft/class_2361;field_11099:I
        named nextId Lnet/minecraft/util/collection/IdList;nextId:I
      • idMap

        private final IdentityHashMap<T,​Integer> idMap
        Mappings:
        Namespace Name Mixin selector
        official c Lgl;c:Ljava/util/IdentityHashMap;
        intermediary field_11100 Lnet/minecraft/class_2361;field_11100:Ljava/util/IdentityHashMap;
        named idMap Lnet/minecraft/util/collection/IdList;idMap:Ljava/util/IdentityHashMap;
      • list

        private final List<T> list
        Mappings:
        Namespace Name Mixin selector
        official d Lgl;d:Ljava/util/List;
        intermediary field_11098 Lnet/minecraft/class_2361;field_11098:Ljava/util/List;
        named list Lnet/minecraft/util/collection/IdList;list:Ljava/util/List;
    • 构造器详细资料

      • IdList

        public IdList()
      • IdList

        public IdList​(int initialSize)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lgl;<init>(I)V
        intermediary <init> Lnet/minecraft/class_2361;<init>(I)V
        named <init> Lnet/minecraft/util/collection/IdList;<init>(I)V
    • 方法详细资料

      • set

        public void set​(T value,
                        int id)
        Mappings:
        Namespace Name Mixin selector
        official a Lgl;a(Ljava/lang/Object;I)V
        intermediary method_10203 Lnet/minecraft/class_2361;method_10203(Ljava/lang/Object;I)V
        named set Lnet/minecraft/util/collection/IdList;set(Ljava/lang/Object;I)V
      • add

        public void add​(T value)
        Mappings:
        Namespace Name Mixin selector
        official b Lgl;b(Ljava/lang/Object;)V
        intermediary method_10205 Lnet/minecraft/class_2361;method_10205(Ljava/lang/Object;)V
        named add Lnet/minecraft/util/collection/IdList;add(Ljava/lang/Object;)V
      • getRawId

        public int getRawId​(T entry)
        指定者:
        getRawId 在接口中 IndexedIterable<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lgk;a(Ljava/lang/Object;)I
        intermediary method_10206 Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I
        named getRawId Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
      • get

        @Nullable
        public final T get​(int index)
        指定者:
        get 在接口中 IndexedIterable<T>
        Mappings:
        Namespace Name Mixin selector
        official a Lgk;a(I)Ljava/lang/Object;
        intermediary method_10200 Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;
        named get Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
      • iterator

        public Iterator<T> iterator()
        指定者:
        iterator 在接口中 Iterable<T>
        Mappings:
        Namespace Name Mixin selector
        official iterator Lgl;iterator()Ljava/util/Iterator;
        intermediary iterator Lnet/minecraft/class_2361;iterator()Ljava/util/Iterator;
        named iterator Lnet/minecraft/util/collection/IdList;iterator()Ljava/util/Iterator;
      • containsKey

        public boolean containsKey​(int index)
        Mappings:
        Namespace Name Mixin selector
        official b Lgl;b(I)Z
        intermediary method_35841 Lnet/minecraft/class_2361;method_35841(I)Z
        named containsKey Lnet/minecraft/util/collection/IdList;containsKey(I)Z
      • size

        public int size()
        Mappings:
        Namespace Name Mixin selector
        official a Lgl;a()I
        intermediary method_10204 Lnet/minecraft/class_2361;method_10204()I
        named size Lnet/minecraft/util/collection/IdList;size()I