Class ScoreLootNumberProvider
java.lang.Object
net.minecraft.loot.provider.number.ScoreLootNumberProvider
- All Implemented Interfaces:
LootContextAware
,LootNumberProvider
public class ScoreLootNumberProvider extends Object implements LootNumberProvider
- Mappings:
Namespace Name official dhx
intermediary net/minecraft/class_5660
named net/minecraft/loot/provider/number/ScoreLootNumberProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScoreLootNumberProvider.Serializer
-
Field Summary
Fields Modifier and Type Field Description private float
scale
private String
score
private LootScoreProvider
target
-
Constructor Summary
Constructors Modifier Constructor Description private
ScoreLootNumberProvider(LootScoreProvider target, String score, float scale)
-
Method Summary
Modifier and Type Method Description Set<LootContextParameter<?>>
getRequiredParameters()
LootNumberProviderType
getType()
float
nextFloat(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
Methods inherited from interface net.minecraft.loot.provider.number.LootNumberProvider
nextInt
-
Field Details
-
target
- Mappings:
Namespace Name Mixin selector official a
Ldhx;a:Ldid;
intermediary field_27925
Lnet/minecraft/class_5660;field_27925:Lnet/minecraft/class_5670;
named target
Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;target:Lnet/minecraft/loot/provider/score/LootScoreProvider;
-
score
- Mappings:
Namespace Name Mixin selector official b
Ldhx;b:Ljava/lang/String;
intermediary field_27926
Lnet/minecraft/class_5660;field_27926:Ljava/lang/String;
named score
Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;score:Ljava/lang/String;
-
scale
private final float scale- Mappings:
Namespace Name Mixin selector official c
Ldhx;c:F
intermediary field_27927
Lnet/minecraft/class_5660;field_27927:F
named scale
Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;scale:F
-
-
Constructor Details
-
ScoreLootNumberProvider
- Mappings:
Namespace Name Mixin selector official <init>
Ldhx;<init>(Ldid;Ljava/lang/String;F)V
intermediary <init>
Lnet/minecraft/class_5660;<init>(Lnet/minecraft/class_5670;Ljava/lang/String;F)V
named <init>
Lnet/minecraft/loot/provider/number/ScoreLootNumberProvider;<init>(Lnet/minecraft/loot/provider/score/LootScoreProvider;Ljava/lang/String;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;
-
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;
-
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
-