Class UniformLootTableRange

java.lang.Object
net.minecraft.loot.UniformLootTableRange
All Implemented Interfaces:
LootTableRange

public class UniformLootTableRange
extends Object
implements LootTableRange
  • Field Details

    • min

      private final float min
    • max

      private final float max
  • Constructor Details

    • UniformLootTableRange

      public UniformLootTableRange​(float min, float max)
    • UniformLootTableRange

      public UniformLootTableRange​(float value)
  • Method Details

    • between

      public static UniformLootTableRange between​(float min, float max)
    • getMinValue

      public float getMinValue()
    • getMaxValue

      public float getMaxValue()
    • next

      public int next​(Random random)
      Specified by:
      next in interface LootTableRange
    • nextFloat

      public float nextFloat​(Random random)
    • contains

      public boolean contains​(int value)
    • getType

      public Identifier getType()
      Specified by:
      getType in interface LootTableRange