public static TileEntity createAndLoadEntity(NBTTagCompound nbttagcompound) { TileEntity tileentity = null; try { var class1 = (Class)nameToClassMap.get(nbttagcompound.getString("id")); if (class1 != null) { tileentity = (TileEntity)class1.newInstance(); } } catch (Exception exception) { exception.printStackTrace(); } if (tileentity != null) { tileentity.readFromNBT(nbttagcompound); } else { [email protected]( (new StringBuilder()).append("Skipping TileEntity with id ").append(nbttagcompound.getString("id")). toString()); } return(tileentity); }