public void writeToNBT(NBTTagCompound nbtTagCompound) {
		super.writeToNBT(nbtTagCompound);

		nbtTagCompound
				.setByte("teDirection", (byte) this.orientation.ordinal());
		nbtTagCompound.setByte("teState", this.state);

		if (hasCustomName()) {
			nbtTagCompound.setString("CustomName", this.customName);
		}

		if (!(hasOwner()))
			return;
		nbtTagCompound.setString("owner", this.owner);
	}