Class EntityHasScoreCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.EntityHasScoreCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntityHasScoreCondition
(Map<String, IntRange> p_81618_, LootContext.EntityTarget p_81619_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>
getType()
protected boolean
hasScore
(LootContext p_165491_, Entity p_165492_, Scoreboard p_165493_, String p_165494_, IntRange p_165495_) hasScores
(LootContext.EntityTarget p_165489_) boolean
test
(LootContext p_81631_) 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
-
Field Details
-
scores
-
entityTarget
-
-
Constructor Details
-
EntityHasScoreCondition
EntityHasScoreCondition(Map<String, IntRange> p_81618_, LootContext.EntityTarget p_81619_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
hasScore
protected boolean hasScore(LootContext p_165491_, Entity p_165492_, Scoreboard p_165493_, String p_165494_, IntRange p_165495_) -
hasScores
-