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.slf4j.Logger LOGGER
    • value

      private final int value
  • Constructor Details

    • Weight

      private Weight(int pWeight)
  • Method Details

    • of

      public static Weight of(int p_146283_)
    • asInt

      public int asInt()
    • validateWeight

      private static void validateWeight(int pWeight)
    • toString

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

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

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