Class LootItemEntityPropertyCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemEntityPropertyCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
LootItemCondition.Builder
-
Field Summary
Modifier and TypeFieldDescription(package private) final LootContext.EntityTarget
(package private) final EntityPredicate
-
Constructor Summary
ConstructorDescriptionLootItemEntityPropertyCondition
(EntityPredicate p_81849_, LootContext.EntityTarget p_81850_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootItemCondition.Builder
entityPresent
(LootContext.EntityTarget p_81863_) Set<LootContextParam<?>>
getType()
static LootItemCondition.Builder
hasProperties
(LootContext.EntityTarget p_81868_, EntityPredicate p_81869_) static LootItemCondition.Builder
hasProperties
(LootContext.EntityTarget p_81865_, EntityPredicate.Builder p_81866_) boolean
test
(LootContext p_81871_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
validate
-
Field Details
-
predicate
-
entityTarget
-
-
Constructor Details
-
LootItemEntityPropertyCondition
LootItemEntityPropertyCondition(EntityPredicate p_81849_, LootContext.EntityTarget p_81850_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
entityPresent
-
hasProperties
public static LootItemCondition.Builder hasProperties(LootContext.EntityTarget p_81865_, EntityPredicate.Builder p_81866_) -
hasProperties
public static LootItemCondition.Builder hasProperties(LootContext.EntityTarget p_81868_, EntityPredicate p_81869_)
-