Package net.minecraft.loot.condition
Class BlockStatePropertyLootCondition
java.lang.Object
net.minecraft.loot.condition.BlockStatePropertyLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
public class BlockStatePropertyLootCondition extends Object implements LootCondition
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockStatePropertyLootCondition.Builder
static class
BlockStatePropertyLootCondition.Serializer
-
Field Summary
Fields Modifier and Type Field Description private Block
block
private StatePredicate
properties
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockStatePropertyLootCondition(Block block, StatePredicate properties)
-
Method Summary
Modifier and Type Method Description static BlockStatePropertyLootCondition.Builder
builder(Block block)
Set<LootContextParameter<?>>
getRequiredParameters()
LootConditionType
getType()
boolean
test(LootContext lootContext)
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.context.LootContextAware
validate
-
Field Details
-
block
-
properties
-
-
Constructor Details
-
BlockStatePropertyLootCondition
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
-
getRequiredParameters
- Specified by:
getRequiredParameters
in interfaceLootContextAware
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
builder
-