public class BlockChangeType extends LogType {
public BlockChangeType(blockChangeLogCategory cat, EntityPlayer player, String block, int X, int Y, int Z, TileEntity te)
{
super();
SerialBlob teBlob = null;
if (te != null)
{
NBTTagCompound nbt = new NBTTagCompound();
te.writeToNBT(nbt);
nbt.setString("TE_CLASS", te.getClass().getCanonicalName());
try
{
teBlob = new SerialBlob(nbt.toString().getBytes(Charsets.UTF_8));
}
catch (Exception e)
{
OutputHandler.felog.severe(e.toString());
e.printStackTrace();