类 Weight

java.lang.Object
net.minecraft.util.random.Weight

public class Weight extends Object
  • 字段详细资料

    • CODEC

      public static final com.mojang.serialization.Codec<Weight> CODEC
    • ONE

      private static final Weight ONE
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • value

      private final int value
  • 构造器详细资料

    • Weight

      private Weight(int p_146280_)
  • 方法详细资料

    • of

      public static Weight of(int p_146283_)
    • asInt

      public int asInt()
    • validateWeight

      private static void validateWeight(int p_146285_)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object p_146287_)
      覆盖:
      equals 在类中 Object