Class DataPool.Builder<E>

java.lang.Object
net.minecraft.util.collection.DataPool.Builder<E>
Enclosing class:
DataPool<E>

public static class DataPool.Builder<E> extends Object
Mappings:
Namespace Name
official baw$a
intermediary net/minecraft/class_6005$class_6006
named net/minecraft/util/collection/DataPool$Builder
  • Field Details

    • entries

      private final ImmutableList.Builder<Weighted.Present<E>> entries
      Mappings:
      Namespace Name Mixin selector
      official a Lbaw$a;a:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_29926 Lnet/minecraft/class_6005$class_6006;field_29926:Lcom/google/common/collect/ImmutableList$Builder;
      named entries Lnet/minecraft/util/collection/DataPool$Builder;entries:Lcom/google/common/collect/ImmutableList$Builder;
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • add

      public DataPool.Builder<E> add(E object, int weight)
      Mappings:
      Namespace Name Mixin selector
      official a Lbaw$a;a(Ljava/lang/Object;I)Lbaw$a;
      intermediary method_34975 Lnet/minecraft/class_6005$class_6006;method_34975(Ljava/lang/Object;I)Lnet/minecraft/class_6005$class_6006;
      named add Lnet/minecraft/util/collection/DataPool$Builder;add(Ljava/lang/Object;I)Lnet/minecraft/util/collection/DataPool$Builder;
    • build

      public DataPool<E> build()
      Mappings:
      Namespace Name Mixin selector
      official a Lbaw$a;a()Lbaw;
      intermediary method_34974 Lnet/minecraft/class_6005$class_6006;method_34974()Lnet/minecraft/class_6005;
      named build Lnet/minecraft/util/collection/DataPool$Builder;build()Lnet/minecraft/util/collection/DataPool;