public class LootTableReporter extends Object
Modifier and Type | Field and Description |
---|---|
private Function<Identifier,LootCondition> |
conditionGetter |
private Set<Identifier> |
conditions |
private LootContextType |
contextType |
private Multimap<String,String> |
messages |
private String |
name |
private Supplier<String> |
nameFactory |
private Function<Identifier,LootTable> |
supplierGetter |
private Set<Identifier> |
suppliers |
Constructor and Description |
---|
LootTableReporter(LootContextType lootContextType,
Function<Identifier,LootCondition> function,
Function<Identifier,LootTable> function2) |
LootTableReporter(Multimap<String,String> multimap,
Supplier<String> supplier,
LootContextType lootContextType,
Function<Identifier,LootCondition> function,
Set<Identifier> set,
Function<Identifier,LootTable> function2,
Set<Identifier> set2) |
Modifier and Type | Method and Description |
---|---|
void |
checkContext(LootContextAware contextAware) |
LootCondition |
getCondition(Identifier id) |
private String |
getContext() |
Multimap<String,String> |
getMessages() |
LootTable |
getSupplier(Identifier id) |
boolean |
hasCondition(Identifier id) |
boolean |
hasSupplier(Identifier id) |
LootTableReporter |
makeChild(String name) |
void |
report(String message) |
LootTableReporter |
withCondition(String name,
Identifier id) |
LootTableReporter |
withContextType(LootContextType contextType) |
LootTableReporter |
withSupplier(String name,
Identifier id) |
private final LootContextType contextType
private final Function<Identifier,LootCondition> conditionGetter
private final Set<Identifier> conditions
private final Function<Identifier,LootTable> supplierGetter
private final Set<Identifier> suppliers
private String name
public LootTableReporter(LootContextType lootContextType, Function<Identifier,LootCondition> function, Function<Identifier,LootTable> function2)
public LootTableReporter(Multimap<String,String> multimap, Supplier<String> supplier, LootContextType lootContextType, Function<Identifier,LootCondition> function, Set<Identifier> set, Function<Identifier,LootTable> function2, Set<Identifier> set2)
private String getContext()
public void report(String message)
public LootTableReporter makeChild(String name)
public LootTableReporter withSupplier(String name, Identifier id)
public LootTableReporter withCondition(String name, Identifier id)
public boolean hasSupplier(Identifier id)
public boolean hasCondition(Identifier id)
public void checkContext(LootContextAware contextAware)
@Nullable public LootTable getSupplier(Identifier id)
@Nullable public LootCondition getCondition(Identifier id)
public LootTableReporter withContextType(LootContextType contextType)