Package net.minecraft.loot.conditions
Class EntityHasProperty
java.lang.Object
net.minecraft.loot.conditions.EntityHasProperty
- All Implemented Interfaces:
Predicate<LootContext>
,ILootCondition
,IParameterized
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LootContext.EntityTarget
private final EntityPredicate
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityHasProperty
(EntityPredicate p_i51196_1_, LootContext.EntityTarget p_i51196_2_) -
Method Summary
Modifier and TypeMethodDescriptionstatic ILootCondition.IBuilder
entityPresent
(LootContext.EntityTarget p_215998_0_) Set<LootParameter<?>>
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 Details
-
predicate
-
entityTarget
-
-
Constructor Details
-
EntityHasProperty
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceILootCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceIParameterized
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
entityPresent
-
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_)
-