public class ReferenceLootCondition extends Object implements LootCondition
Modifier and Type | Class and Description |
---|---|
static class |
ReferenceLootCondition.Serializer |
LootCondition.Builder
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
private static Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
private |
ReferenceLootCondition(Identifier id) |
Modifier and Type | Method and Description |
---|---|
LootConditionType |
getType() |
boolean |
test(LootContext lootContext) |
void |
validate(LootTableReporter reporter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredParameters
private static final Logger LOGGER
private final Identifier id
private ReferenceLootCondition(Identifier id)
public LootConditionType getType()
getType
in interface LootCondition
public void validate(LootTableReporter reporter)
validate
in interface LootContextAware
public boolean test(LootContext lootContext)
test
in interface Predicate<LootContext>