Class RandomValueRange

java.lang.Object
net.minecraft.loot.RandomValueRange
All Implemented Interfaces:
IRandomRange

public class RandomValueRange extends Object implements IRandomRange
  • Field Details

    • min

      private final float min
    • max

      private final float max
  • Constructor Details

    • RandomValueRange

      public RandomValueRange(float p_i46629_1_, float p_i46629_2_)
    • RandomValueRange

      public RandomValueRange(float p_i46630_1_)
  • Method Details

    • between

      public static RandomValueRange between(float p_215837_0_, float p_215837_1_)
    • getMin

      public float getMin()
    • getMax

      public float getMax()
    • getInt

      public int getInt(Random p_186511_1_)
      Specified by:
      getInt in interface IRandomRange
    • getFloat

      public float getFloat(Random p_186507_1_)
    • matchesValue

      public boolean matchesValue(int p_186510_1_)
    • getType

      public ResourceLocation getType()
      Specified by:
      getType in interface IRandomRange