Class ConstantLootNumberProvider
java.lang.Object
net.minecraft.loot.provider.number.ConstantLootNumberProvider
- All Implemented Interfaces:
LootContextAware
,LootNumberProvider
public final class ConstantLootNumberProvider extends Object implements LootNumberProvider
- Mappings:
Namespace Name official dht
intermediary net/minecraft/class_44
named net/minecraft/loot/provider/number/ConstantLootNumberProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstantLootNumberProvider.CustomSerializer
static class
ConstantLootNumberProvider.Serializer
-
Field Summary
Fields Modifier and Type Field Description private float
value
-
Constructor Summary
Constructors Modifier Constructor Description private
ConstantLootNumberProvider(float value)
-
Method Summary
Modifier and Type Method Description static ConstantLootNumberProvider
create(float value)
boolean
equals(Object object)
LootNumberProviderType
getType()
int
hashCode()
float
nextFloat(LootContext context)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters, validate
Methods inherited from interface net.minecraft.loot.provider.number.LootNumberProvider
nextInt
-
Field Details
-
value
private final float value- Mappings:
Namespace Name Mixin selector official a
Ldht;a:F
intermediary field_922
Lnet/minecraft/class_44;field_922:F
named value
Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;value:F
-
-
Constructor Details
-
ConstantLootNumberProvider
private ConstantLootNumberProvider(float value)- Mappings:
Namespace Name Mixin selector official <init>
Ldht;<init>(F)V
intermediary <init>
Lnet/minecraft/class_44;<init>(F)V
named <init>
Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;<init>(F)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;
-
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
-
create
- Mappings:
Namespace Name Mixin selector official a
Ldht;a(F)Ldht;
intermediary method_32448
Lnet/minecraft/class_44;method_32448(F)Lnet/minecraft/class_44;
named create
Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;create(F)Lnet/minecraft/loot/provider/number/ConstantLootNumberProvider;
-
equals
-
hashCode
public int hashCode()
-