public class LootContextType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LootContextType.Builder |
Modifier and Type | Field and Description |
---|---|
private Set<LootContextParameter<?>> |
allowed |
private Set<LootContextParameter<?>> |
required |
Modifier | Constructor and Description |
---|---|
private |
LootContextType(Set<LootContextParameter<?>> required,
Set<LootContextParameter<?>> allowed) |
Modifier and Type | Method and Description |
---|---|
Set<LootContextParameter<?>> |
getAllowed() |
Set<LootContextParameter<?>> |
getRequired() |
String |
toString() |
void |
validate(LootTableReporter reporter,
LootContextAware parameterConsumer) |
private final Set<LootContextParameter<?>> required
private final Set<LootContextParameter<?>> allowed
private LootContextType(Set<LootContextParameter<?>> required, Set<LootContextParameter<?>> allowed)
public Set<LootContextParameter<?>> getRequired()
public Set<LootContextParameter<?>> getAllowed()
public void validate(LootTableReporter reporter, LootContextAware parameterConsumer)