类 WeightedEntry.Wrapper<T>

java.lang.Object
net.minecraft.util.random.WeightedEntry.Wrapper<T>
所有已实现的接口:
WeightedEntry
封闭接口:
WeightedEntry

public static class WeightedEntry.Wrapper<T> extends Object implements WeightedEntry
  • 字段详细资料

    • data

      private final T data
    • weight

      private final Weight weight
  • 构造器详细资料

    • Wrapper

      Wrapper(T p_146302_, Weight p_146303_)
  • 方法详细资料

    • getData

      public T getData()
    • getWeight

      public Weight getWeight()
      指定者:
      getWeight 在接口中 WeightedEntry
    • codec

      public static <E> com.mojang.serialization.Codec<WeightedEntry.Wrapper<E>> codec(com.mojang.serialization.Codec<E> pElementCodec)