Class ScoreboardValue
java.lang.Object
net.minecraft.world.level.storage.loot.providers.number.ScoreboardValue
- All Implemented Interfaces:
LootContextUser
,NumberProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final float
(package private) final String
(package private) final ScoreboardNameProvider
-
Constructor Summary
ConstructorsConstructorDescriptionScoreboardValue
(ScoreboardNameProvider p_165745_, String p_165746_, float p_165747_) -
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreboardValue
fromScoreboard
(LootContext.EntityTarget p_165750_, String p_165751_) static ScoreboardValue
fromScoreboard
(LootContext.EntityTarget p_165753_, String p_165754_, float p_165755_) float
getFloat
(LootContext p_165758_) Set<LootContextParam<?>>
getType()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
Methods inherited from interface net.minecraft.world.level.storage.loot.providers.number.NumberProvider
getInt
-
Field Details
-
target
-
score
-
scale
final float scale
-
-
Constructor Details
-
ScoreboardValue
ScoreboardValue(ScoreboardNameProvider p_165745_, String p_165746_, float p_165747_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceNumberProvider
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
fromScoreboard
-
fromScoreboard
public static ScoreboardValue fromScoreboard(LootContext.EntityTarget p_165753_, String p_165754_, float p_165755_) -
getFloat
- Specified by:
getFloat
in interfaceNumberProvider
-