Class UniformLootNumberProvider

java.lang.Object
net.minecraft.loot.provider.number.UniformLootNumberProvider
All Implemented Interfaces:
LootContextAware, LootNumberProvider

public class UniformLootNumberProvider extends Object implements LootNumberProvider
Mappings:
Namespace Name
official dne
intermediary net/minecraft/class_5662
named net/minecraft/loot/provider/number/UniformLootNumberProvider
  • Field Details

    • min

      final LootNumberProvider min
      Mappings:
      Namespace Name Mixin selector
      official a Ldne;a:Ldnb;
      intermediary field_27928 Lnet/minecraft/class_5662;field_27928:Lnet/minecraft/class_5658;
      named min Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;min:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • max

      final LootNumberProvider max
      Mappings:
      Namespace Name Mixin selector
      official b Ldne;b:Ldnb;
      intermediary field_27929 Lnet/minecraft/class_5662;field_27929:Lnet/minecraft/class_5658;
      named max Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;max:Lnet/minecraft/loot/provider/number/LootNumberProvider;
  • Constructor Details

  • Method Details

    • getType

      public LootNumberProviderType getType()
      Specified by:
      getType in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldnb;a()Ldna;
      intermediary method_365 Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;
      named getType Lnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;
    • create

      public static UniformLootNumberProvider create(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Ldne;a(FF)Ldne;
      intermediary method_32462 Lnet/minecraft/class_5662;method_32462(FF)Lnet/minecraft/class_5662;
      named create Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;create(FF)Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;
    • nextInt

      public int nextInt(LootContext context)
      Specified by:
      nextInt in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldnb;a(Ldjn;)I
      intermediary method_366 Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)I
      named nextInt Lnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)I
    • nextFloat

      public float nextFloat(LootContext context)
      Specified by:
      nextFloat in interface LootNumberProvider
      Mappings:
      Namespace Name Mixin selector
      official b Ldnb;b(Ldjn;)F
      intermediary method_32454 Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)F
      named nextFloat Lnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)F
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Specified by:
      getRequiredParameters in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official b Ldjo;b()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;