Class LootItemBlockStatePropertyCondition
java.lang.Object
net.minecraft.world.level.storage.loot.predicates.LootItemBlockStatePropertyCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescription(package private) final Block
(package private) final StatePropertiesPredicate
-
Constructor Summary
ConstructorDescriptionLootItemBlockStatePropertyCondition
(Block p_81762_, StatePropertiesPredicate p_81763_) -
Method Summary
Modifier and TypeMethodDescriptionSet<LootContextParam<?>>
getType()
hasBlockStateProperties
(Block p_81770_) boolean
test
(LootContext p_81772_) 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
-
block
-
properties
-
-
Constructor Details
-
LootItemBlockStatePropertyCondition
LootItemBlockStatePropertyCondition(Block p_81762_, StatePropertiesPredicate p_81763_)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootItemCondition
-
getReferencedContextParams
- Specified by:
getReferencedContextParams
in interfaceLootContextUser
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
hasBlockStateProperties
-