Package net.minecraft.loot
Class LootTableReporter
java.lang.Object
net.minecraft.loot.LootTableReporter
public class LootTableReporter extends Object
-
Field Summary
Fields Modifier and Type Field 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>
tableGetter
private Set<Identifier>
tables
-
Constructor Summary
Constructors Constructor Description LootTableReporter(Multimap<String,String> messages, Supplier<String> nameFactory, LootContextType contextType, Function<Identifier,LootCondition> conditionGetter, Set<Identifier> conditions, Function<Identifier,LootTable> tableGetter, Set<Identifier> tables)
LootTableReporter(LootContextType contextType, Function<Identifier,LootCondition> conditionGetter, Function<Identifier,LootTable> tableFactory)
-
Method Summary
Modifier and Type Method Description LootCondition
getCondition(Identifier id)
Multimap<String,String>
getMessages()
private String
getName()
LootTable
getTable(Identifier id)
boolean
hasCondition(Identifier id)
boolean
hasTable(Identifier id)
LootTableReporter
makeChild(String name)
void
report(String message)
void
validateContext(LootContextAware contextAware)
LootTableReporter
withCondition(String name, Identifier id)
LootTableReporter
withContextType(LootContextType contextType)
LootTableReporter
withTable(String name, Identifier id)
-
Field Details
-
messages
-
nameFactory
-
contextType
-
conditionGetter
-
conditions
-
tableGetter
-
tables
-
name
-
-
Constructor Details
-
LootTableReporter
public LootTableReporter(LootContextType contextType, Function<Identifier,LootCondition> conditionGetter, Function<Identifier,LootTable> tableFactory) -
LootTableReporter
public LootTableReporter(Multimap<String,String> messages, Supplier<String> nameFactory, LootContextType contextType, Function<Identifier,LootCondition> conditionGetter, Set<Identifier> conditions, Function<Identifier,LootTable> tableGetter, Set<Identifier> tables)
-
-
Method Details
-
getName
-
report
-
makeChild
-
withTable
-
withCondition
-
hasTable
-
hasCondition
-
getMessages
-
validateContext
-
getTable
-
getCondition
-
withContextType
-