Class Weight

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

public class Weight extends Object
  • Field Details

    • CODEC

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

      private static final Weight ONE
    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • value

      private final int value
  • Constructor Details

    • Weight

      private Weight(int p_146280_)
  • Method Details

    • of

      public static Weight of(int p_146283_)
    • asInt

      public int asInt()
    • validateWeight

      private static void validateWeight(int p_146285_)
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object p_146287_)
      Overrides:
      equals in class Object