public class EntityHasProperty extends java.lang.Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
EntityHasProperty.Serializer |
Modifier and Type | Field and Description |
---|---|
private EntityProperty[] |
properties |
private LootContext.EntityTarget |
target |
Constructor and Description |
---|
EntityHasProperty(EntityProperty[] propertiesIn,
LootContext.EntityTarget targetIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
testCondition(java.util.Random rand,
LootContext context) |
private final EntityProperty[] properties
private final LootContext.EntityTarget target
public EntityHasProperty(EntityProperty[] propertiesIn, LootContext.EntityTarget targetIn)
public boolean testCondition(java.util.Random rand, LootContext context)
testCondition
in interface LootCondition