public class BlockStatePropertyLootCondition extends Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
BlockStatePropertyLootCondition.Builder |
static class |
BlockStatePropertyLootCondition.Serializer |
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private StatePredicate |
properties |
Modifier | Constructor and Description |
---|---|
private |
BlockStatePropertyLootCondition(Block block,
StatePredicate properties) |
Modifier and Type | Method and Description |
---|---|
static BlockStatePropertyLootCondition.Builder |
builder(Block block) |
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootConditionType |
getType() |
boolean |
test(LootContext lootContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
private final Block block
private final StatePredicate properties
private BlockStatePropertyLootCondition(Block block, StatePredicate properties)
public LootConditionType getType()
getType
in interface LootCondition
public Set<LootContextParameter<?>> getRequiredParameters()
getRequiredParameters
in interface LootContextAware
public boolean test(LootContext lootContext)
test
in interface Predicate<LootContext>
public static BlockStatePropertyLootCondition.Builder builder(Block block)