Package net.minecraft.loot.conditions
Class EntityHasScore
java.lang.Object
net.minecraft.loot.conditions.EntityHasScore
- All Implemented Interfaces:
Predicate<LootContext>,ILootCondition,IParameterized
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootContext.EntityTargetprivate final Map<String,RandomValueRange> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityHasScore(Map<String, RandomValueRange> p_i46618_1_, LootContext.EntityTarget p_i46618_2_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootParameter<?>>getType()protected booleanhasScore(Entity p_186631_1_, Scoreboard p_186631_2_, String p_186631_3_, RandomValueRange p_186631_4_) booleantest(LootContext p_test_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.IParameterized
validate
-
Field Details
-
scores
-
entityTarget
-
-
Constructor Details
-
EntityHasScore
private EntityHasScore(Map<String, RandomValueRange> p_i46618_1_, LootContext.EntityTarget p_i46618_2_)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceILootCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParamsin interfaceIParameterized
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
hasScore
protected boolean hasScore(Entity p_186631_1_, Scoreboard p_186631_2_, String p_186631_3_, RandomValueRange p_186631_4_)
-