/** (abstract) Protected helper method to read subclass entity data from NBT. */
  public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
    super.readEntityFromNBT(par1NBTTagCompound);

    if (par1NBTTagCompound.hasKey("SkeletonType")) {
      byte var2 = par1NBTTagCompound.getByte("SkeletonType");
      this.setSkeletonType(var2);
    }

    this.func_85036_m();
  }
예제 #2
0
 public void readEntityFromNBT(NBTTagCompound nbttagcompound) {
   super.readEntityFromNBT(nbttagcompound);
   dataWatcher.updateObject(
       17, Byte.valueOf((byte) (nbttagcompound.getBoolean("powered") ? 1 : 0)));
 }