Class ShufflingList.WeightedEntry<T>

java.lang.Object
net.minecraft.world.entity.ai.behavior.ShufflingList.WeightedEntry<T>
Enclosing class:
ShufflingList<U>

public static class ShufflingList.WeightedEntry<T> extends Object
  • Field Details

    • data

      final T data
    • weight

      final int weight
    • randWeight

      private double randWeight
  • Constructor Details

    • WeightedEntry

      WeightedEntry(T p_147938_, int p_147939_)
  • Method Details

    • getRandWeight

      private double getRandWeight()
    • setRandom

      void setRandom(float p_147942_)
    • getData

      public T getData()
    • getWeight

      public int getWeight()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • codec

      public static <E> com.mojang.serialization.Codec<ShufflingList.WeightedEntry<E>> codec(com.mojang.serialization.Codec<E> p_147944_)