public class EntityPropertiesLootCondition extends Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
EntityPropertiesLootCondition.Serializer |
LootCondition.Builder
Modifier and Type | Field and Description |
---|---|
private LootContext.EntityTarget |
entity |
private EntityPredicate |
predicate |
Modifier | Constructor and Description |
---|---|
private |
EntityPropertiesLootCondition(EntityPredicate predicate,
LootContext.EntityTarget entity) |
Modifier and Type | Method and Description |
---|---|
static LootCondition.Builder |
builder(LootContext.EntityTarget entity,
EntityPredicate.Builder predicateBuilder) |
static LootCondition.Builder |
builder(LootContext.EntityTarget entity,
EntityPredicate predicate) |
static LootCondition.Builder |
create(LootContext.EntityTarget entity) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootConditionType |
getType() |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
private final EntityPredicate predicate
private final LootContext.EntityTarget entity
private EntityPropertiesLootCondition(EntityPredicate predicate, LootContext.EntityTarget entity)
public LootConditionType getType()
getType
in interface LootCondition
public Set<LootContextParameter<?>> getRequiredParameters()
getRequiredParameters
in interface LootContextAware
public boolean test(LootContext lootContext)
test
in interface Predicate<LootContext>
public static LootCondition.Builder create(LootContext.EntityTarget entity)
public static LootCondition.Builder builder(LootContext.EntityTarget entity, EntityPredicate.Builder predicateBuilder)
public static LootCondition.Builder builder(LootContext.EntityTarget entity, EntityPredicate predicate)