Package net.minecraft.loot.conditions
Class EntityHasScore
- java.lang.Object
-
- net.minecraft.loot.conditions.EntityHasScore
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class EntityHasScore extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityHasScore.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private LootContext.EntityTarget
entityTarget
private java.util.Map<java.lang.String,RandomValueRange>
scores
-
Constructor Summary
Constructors Modifier Constructor Description private
EntityHasScore(java.util.Map<java.lang.String,RandomValueRange> p_i46618_1_, LootContext.EntityTarget p_i46618_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootConditionType
getType()
protected boolean
hasScore(Entity p_186631_1_, Scoreboard p_186631_2_, java.lang.String p_186631_3_, RandomValueRange p_186631_4_)
boolean
test(LootContext p_test_1_)
-
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.IParameterized
validate
-
-
-
-
Field Detail
-
scores
private final java.util.Map<java.lang.String,RandomValueRange> scores
-
entityTarget
private final LootContext.EntityTarget entityTarget
-
-
Constructor Detail
-
EntityHasScore
private EntityHasScore(java.util.Map<java.lang.String,RandomValueRange> p_i46618_1_, LootContext.EntityTarget p_i46618_2_)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
- Specified by:
getReferencedContextParams
in interfaceIParameterized
-
test
public boolean test(LootContext p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
hasScore
protected boolean hasScore(Entity p_186631_1_, Scoreboard p_186631_2_, java.lang.String p_186631_3_, RandomValueRange p_186631_4_)
-
-