Esempio n. 1
0
  /** (abstract) Protected helper method to read subclass entity data from NBT. */
  public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
    super.readEntityFromNBT(par1NBTTagCompound);
    this.setAngry(par1NBTTagCompound.getBoolean("Angry"));

    if (par1NBTTagCompound.hasKey("CollarColor")) {
      this.setCollarColor(par1NBTTagCompound.getByte("CollarColor"));
    }
  }
Esempio n. 2
0
 /** (abstract) Protected helper method to read subclass entity data from NBT. */
 public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
   super.readEntityFromNBT(par1NBTTagCompound);
   this.setTameSkin(par1NBTTagCompound.getInteger("CatType"));
 }