public class EntityHasProperty extends java.lang.Object implements ILootCondition
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityHasProperty.Serializer |
ILootCondition.AbstractSerializer<T extends ILootCondition>, ILootCondition.IBuilder| Modifier and Type | Field and Description |
|---|---|
private EntityPredicate |
predicate |
private LootContext.EntityTarget |
target |
| Modifier | Constructor and Description |
|---|---|
private |
EntityHasProperty(EntityPredicate predicateIn,
LootContext.EntityTarget targetIn) |
| Modifier and Type | Method and Description |
|---|---|
static ILootCondition.IBuilder |
builder(LootContext.EntityTarget targetIn) |
static ILootCondition.IBuilder |
builder(LootContext.EntityTarget targetIn,
EntityPredicate.Builder predicateBuilderIn) |
java.util.Set<LootParameter<?>> |
getRequiredParameters() |
boolean |
test(LootContext p_test_1_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_225580_a_private final EntityPredicate predicate
private final LootContext.EntityTarget target
private EntityHasProperty(EntityPredicate predicateIn, LootContext.EntityTarget targetIn)
public java.util.Set<LootParameter<?>> getRequiredParameters()
getRequiredParameters in interface IParameterizedpublic boolean test(LootContext p_test_1_)
test in interface java.util.function.Predicate<LootContext>public static ILootCondition.IBuilder builder(LootContext.EntityTarget targetIn)
public static ILootCondition.IBuilder builder(LootContext.EntityTarget targetIn, EntityPredicate.Builder predicateBuilderIn)