public class EntityHasScore extends java.lang.Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
EntityHasScore.Serializer |
Constructor and Description |
---|
EntityHasScore(java.util.Map<java.lang.String,RandomValueRange> scoreIn,
LootContext.EntityTarget targetIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
entityScoreMatch(Entity entityIn,
Scoreboard scoreboardIn,
java.lang.String objectiveStr,
RandomValueRange rand) |
boolean |
testCondition(java.util.Random rand,
LootContext context) |
public EntityHasScore(java.util.Map<java.lang.String,RandomValueRange> scoreIn, LootContext.EntityTarget targetIn)
public boolean testCondition(java.util.Random rand, LootContext context)
testCondition
in interface LootCondition
protected boolean entityScoreMatch(Entity entityIn, Scoreboard scoreboardIn, java.lang.String objectiveStr, RandomValueRange rand)