Main class: Register TileEntity

master
BodgeMaster 2022-12-20 20:17:16 +01:00
parent 397d66ce54
commit 32610cf937
1 changed files with 3 additions and 0 deletions

View File

@ -1,12 +1,14 @@
package lostcave.deathchests; package lostcave.deathchests;
import lostcave.deathchests.block.BlockDeathChest; import lostcave.deathchests.block.BlockDeathChest;
import lostcave.deathchests.block.BlockDeathChest.TileDeathChest;
import lostcave.deathchests.item.ItemObituary; import lostcave.deathchests.item.ItemObituary;
import lostcave.deathchests.util.Config; import lostcave.deathchests.util.Config;
import lostcave.deathchests.util.DeathChestStorage; import lostcave.deathchests.util.DeathChestStorage;
import lostcave.deathchests.util.Debug; import lostcave.deathchests.util.Debug;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.MinecraftForge;
@ -67,6 +69,7 @@ public class DeathChests {
@EventHandler @EventHandler
public void init(FMLPostInitializationEvent event) { public void init(FMLPostInitializationEvent event) {
Debug.out("Received FMLPostInitializationEvent"); Debug.out("Received FMLPostInitializationEvent");
TileEntity.addMapping(TileDeathChest.class, "death_chest");
} }
@EventHandler @EventHandler