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 classBlockStatePropertyLootCondition.Builderstatic classBlockStatePropertyLootCondition.Serializer -
Field Summary
Fields Modifier and Type Field Description private Blockblockprivate StatePredicateproperties -
Constructor Summary
Constructors Modifier Constructor Description privateBlockStatePropertyLootCondition(Block block, StatePredicate properties) -
Method Summary
Modifier and Type Method Description static BlockStatePropertyLootCondition.Builderbuilder(Block block)Set<LootContextParameter<?>>getRequiredParameters()LootConditionTypegetType()booleantest(LootContext lootContext)
-
Field Details
-
Constructor Details
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootCondition
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
builder
-