Package net.minecraft.loot.conditions
Class EntityHasProperty
- java.lang.Object
-
- net.minecraft.loot.conditions.EntityHasProperty
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class EntityHasProperty extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityHasProperty.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 EntityPredicate
predicate
-
Constructor Summary
Constructors Modifier Constructor Description private
EntityHasProperty(EntityPredicate p_i51196_1_, LootContext.EntityTarget p_i51196_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ILootCondition.IBuilder
entityPresent(LootContext.EntityTarget p_215998_0_)
java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootConditionType
getType()
static ILootCondition.IBuilder
hasProperties(LootContext.EntityTarget p_237477_0_, EntityPredicate p_237477_1_)
static ILootCondition.IBuilder
hasProperties(LootContext.EntityTarget p_215999_0_, EntityPredicate.Builder p_215999_1_)
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
-
predicate
private final EntityPredicate predicate
-
entityTarget
private final LootContext.EntityTarget entityTarget
-
-
Constructor Detail
-
EntityHasProperty
private EntityHasProperty(EntityPredicate p_i51196_1_, LootContext.EntityTarget p_i51196_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>
-
entityPresent
public static ILootCondition.IBuilder entityPresent(LootContext.EntityTarget p_215998_0_)
-
hasProperties
public static ILootCondition.IBuilder hasProperties(LootContext.EntityTarget p_215999_0_, EntityPredicate.Builder p_215999_1_)
-
hasProperties
public static ILootCondition.IBuilder hasProperties(LootContext.EntityTarget p_237477_0_, EntityPredicate p_237477_1_)
-
-