public class DungeonRegistryImpl extends java.lang.Object implements IDungeonRegistry
| Modifier | Constructor and Description |
|---|---|
protected |
DungeonRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
commit() |
void |
registerCategory(java.lang.String category,
java.lang.String localization)
Add a new category
IDungeonRegistry.registerCategory("chest/chest_type", "localization.string"); |
void |
registerChest(java.lang.String category,
net.minecraft.loot.LootTable lootTable) |
void |
registerChest(java.lang.String category,
net.minecraft.util.ResourceLocation tableLocation) |
public void registerCategory(@Nonnull
java.lang.String category,
@Nonnull
java.lang.String localization)
IDungeonRegistryIDungeonRegistry.registerCategory("chest/chest_type", "localization.string");registerCategory in interface IDungeonRegistrycategory - the category namelocalization - the translation keypublic void registerChest(@Nonnull
java.lang.String category,
@Nonnull
net.minecraft.util.ResourceLocation tableLocation)
registerChest in interface IDungeonRegistrycategory - can be a localization string directly or a registered categorytableLocation - the ResourceLocation of the loot tablepublic void registerChest(@Nonnull
java.lang.String category,
@Nonnull
net.minecraft.loot.LootTable lootTable)
registerChest in interface IDungeonRegistrycategory - can be a localization string directly or a registered categorylootTable - the actual LootTableprotected static void commit()