public override void readFromNBT(NBTTagCompound nbttagcompound) { base.readFromNBT(nbttagcompound); note = nbttagcompound.getByte("note"); if (note < 0) { note = 0; } if (note > 24) { note = 24; } }
public override void readEntityFromNBT(NBTTagCompound nbttagcompound) { blockID = nbttagcompound.getByte("Tile") & 0xff; }