public class LootManager extends JsonDataLoader
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private LootConditionManager |
conditionManager |
private static Gson |
GSON |
private static Logger |
LOGGER |
private Map<Identifier,LootTable> |
tables |
Constructor and Description |
---|
LootManager(LootConditionManager conditionManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(Map<Identifier,JsonElement> map,
ResourceManager resourceManager,
Profiler profiler) |
LootTable |
getTable(Identifier id) |
Set<Identifier> |
getTableIds() |
static JsonElement |
toJson(LootTable table) |
static void |
validate(LootTableReporter reporter,
Identifier id,
LootTable table) |
prepare
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
private static final Logger LOGGER
private static final Gson GSON
private Map<Identifier,LootTable> tables
private final LootConditionManager conditionManager
public LootManager(LootConditionManager conditionManager)
public LootTable getTable(Identifier id)
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)
apply
in class SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
public static void validate(LootTableReporter reporter, Identifier id, LootTable table)
public static JsonElement toJson(LootTable table)
public Set<Identifier> getTableIds()