001package net.minecraft.tileentity; 002 003import net.minecraft.nbt.NBTTagCompound; 004 005public class TileEntityComparator extends TileEntity 006{ 007 private int field_96101_a = 0; 008 009 /** 010 * Writes a tile entity to NBT. 011 */ 012 public void writeToNBT(NBTTagCompound par1NBTTagCompound) 013 { 014 super.writeToNBT(par1NBTTagCompound); 015 par1NBTTagCompound.setInteger("OutputSignal", this.field_96101_a); 016 } 017 018 /** 019 * Reads a tile entity from NBT. 020 */ 021 public void readFromNBT(NBTTagCompound par1NBTTagCompound) 022 { 023 super.readFromNBT(par1NBTTagCompound); 024 this.field_96101_a = par1NBTTagCompound.getInteger("OutputSignal"); 025 } 026 027 public int func_96100_a() 028 { 029 return this.field_96101_a; 030 } 031 032 public void func_96099_a(int par1) 033 { 034 this.field_96101_a = par1; 035 } 036}