package net.minecraft.src;

public class TileEntitySign extends TileEntity {
	public String[] signText = new String[]{"", "", "", ""};
	public int lineBeingEdited = -1;

	public void writeToNBT(NBTTagCompound var1) {
		super.writeToNBT(var1);
		var1.setString("Text1", this.signText[0]);
		var1.setString("Text2", this.signText[1]);
		var1.setString("Text3", this.signText[2]);
		var1.setString("Text4", this.signText[3]);
	}

	public void readFromNBT(NBTTagCompound var1) {
		super.readFromNBT(var1);

		for(int var2 = 0; var2 < 4; ++var2) {
			this.signText[var2] = var1.getString("Text" + (var2 + 1));
			if(this.signText[var2].length() > 15) {
				this.signText[var2] = this.signText[var2].substring(0, 15);
			}
		}

	}
}
