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 dhy
intermediary net/minecraft/class_5662
named net/minecraft/loot/provider/number/UniformLootNumberProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UniformLootNumberProvider.Serializer
-
Field Summary
Fields Modifier and Type Field Description private LootNumberProvider
max
private LootNumberProvider
min
-
Constructor Summary
Constructors Modifier Constructor Description private
UniformLootNumberProvider(LootNumberProvider min, LootNumberProvider max)
-
Method Summary
Modifier and Type Method Description static UniformLootNumberProvider
create(float min, float max)
Set<LootContextParameter<?>>
getRequiredParameters()
LootNumberProviderType
getType()
float
nextFloat(LootContext context)
int
nextInt(LootContext context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.context.LootContextAware
validate
-
Field Details
-
min
- Mappings:
Namespace Name Mixin selector official a
Ldhy;a:Ldhv;
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
- Mappings:
Namespace Name Mixin selector official b
Ldhy;b:Ldhv;
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
-
UniformLootNumberProvider
- Mappings:
Namespace Name Mixin selector official <init>
Ldhy;<init>(Ldhv;Ldhv;)V
intermediary <init>
Lnet/minecraft/class_5662;<init>(Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
named <init>
Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;<init>(Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official a
Ldhv;a()Ldhu;
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
- Mappings:
Namespace Name Mixin selector official a
Ldhy;a(FF)Ldhy;
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
- Specified by:
nextInt
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official a
Ldhv;a(Ldei;)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
- Specified by:
nextFloat
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official b
Ldhv;b(Ldei;)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
- Specified by:
getRequiredParameters
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official b
Ldej;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;
-