@Override
 public void readEntityFromNBT(NBTTagCompound nbt) {
   super.readEntityFromNBT(nbt);
   this.fuseTicks = nbt.getShort("Fuse");
   if (nbt.hasKey("ex")) {
     ex = ExplosiveRegistry.get(nbt.getString("ex"));
     ex_size = Math.max(nbt.getDouble("size"), 1.0);
     if (nbt.hasKey("ex_data")) ex_data = nbt.getCompoundTag("ex_data");
   }
 }
  /** (abstract) Protected helper method to read subclass entity data from NBT. */
  public void readEntityFromNBT(NBTTagCompound p_70037_1_) {
    super.readEntityFromNBT(p_70037_1_);

    if (p_70037_1_.hasKey("SkeletonType", 99)) {
      byte b0 = p_70037_1_.getByte("SkeletonType");
      this.setSkeletonType(b0);
    }

    this.setCombatTask();
  }
 @Override
 public void readEntityFromNBT(NBTTagCompound nbt) {
   super.readEntityFromNBT(nbt);
   this.roomCoords = new Vector3();
   this.roomCoords.x = nbt.getDouble("roomCoordsX");
   this.roomCoords.y = nbt.getDouble("roomCoordsY");
   this.roomCoords.z = nbt.getDouble("roomCoordsZ");
   this.roomSize = new Vector3();
   this.roomSize.x = nbt.getDouble("roomSizeX");
   this.roomSize.y = nbt.getDouble("roomSizeY");
   this.roomSize.z = nbt.getDouble("roomSizeZ");
 }
  /** (abstract) Protected helper method to read subclass entity data from NBT. */
  public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
    super.readEntityFromNBT(par1NBTTagCompound);
    this.dataWatcher.updateObject(
        17, Byte.valueOf((byte) (par1NBTTagCompound.getBoolean("powered") ? 1 : 0)));

    if (par1NBTTagCompound.hasKey("Fuse")) {
      this.fuseTime = par1NBTTagCompound.getShort("Fuse");
    }

    if (par1NBTTagCompound.hasKey("ExplosionRadius")) {
      this.explosionRadius = par1NBTTagCompound.getByte("ExplosionRadius");
    }
  }
Beispiel #5
0
  @Override
  public void readEntityFromNBT(NBTTagCompound data) {
    super.readEntityFromNBT(data);

    setState(BossState.values()[data.getInteger("state")]);

    setCharge(data.getInteger("charge"));

    setCurrentAttack(
        data.getInteger("curattack") == -1
            ? null
            : BossAttack.values()[data.getInteger("curattack")]);
  }
Beispiel #6
0
  /** (abstract) Protected helper method to read subclass entity data from NBT. */
  public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
    super.readEntityFromNBT(par1NBTTagCompound);

    if (par1NBTTagCompound.getBoolean("IsBaby")) {
      this.setChild(true);
    }

    if (par1NBTTagCompound.getBoolean("IsVillager")) {
      this.setVillager(true);
    }

    if (par1NBTTagCompound.hasKey("ConversionTime")
        && par1NBTTagCompound.getInteger("ConversionTime") > -1) {
      this.startConversion(par1NBTTagCompound.getInteger("ConversionTime"));
    }
  }
  /** (abstract) Protected helper method to read subclass entity data from NBT. */
  @Override
  public void readEntityFromNBT(NBTTagCompound nbt) {
    super.readEntityFromNBT(nbt);
    int i = nbt.getInteger("Size");

    if (i < 0) {
      i = 0;
    }

    this.setSlimeSize(i + 1);
    this.roomCoords = new Vector3();
    this.roomCoords.x = nbt.getDouble("roomCoordsX");
    this.roomCoords.y = nbt.getDouble("roomCoordsY");
    this.roomCoords.z = nbt.getDouble("roomCoordsZ");
    this.roomSize = new Vector3();
    this.roomSize.x = nbt.getDouble("roomSizeX");
    this.roomSize.y = nbt.getDouble("roomSizeY");
    this.roomSize.z = nbt.getDouble("roomSizeZ");
  }
    @Override
    /**
     * (abstract) Protected helper method to read subclass entity data from NBT.
     */
    public void readEntityFromNBT(NBTTagCompound tagCompund)
    {
        super.readEntityFromNBT(tagCompund);
        IBlockState iblockstate;

        if (tagCompund.hasKey("carried", 8))
        {
            iblockstate = Block.getBlockFromName(tagCompund.getString("carried")).getStateFromMeta(tagCompund.getShort("carriedData") & 65535);
        }
        else
        {
            iblockstate = Block.getBlockById(tagCompund.getShort("carried")).getStateFromMeta(tagCompund.getShort("carriedData") & 65535);
        }

        this.func_175490_a(iblockstate);
    }
Beispiel #9
0
 public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
   super.readEntityFromNBT(par1NBTTagCompound);
 }
Beispiel #10
0
 @Override
 public void readEntityFromNBT(NBTTagCompound nbt) {
   super.readEntityFromNBT(nbt);
   if (nbt.hasKey("skin")) setSkin(nbt.getInteger("skin"));
   else setSkin(rand.nextInt(2));
 }
 /** (abstract) Protected helper method to read subclass entity data from NBT. */
 public void readEntityFromNBT(NBTTagCompound nbttagcompound) {
   super.readEntityFromNBT(nbttagcompound);
   hungry = nbttagcompound.getBoolean("Hungry");
   modelsize = nbttagcompound.getFloat("ModelSize");
 }
 public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
   super.readEntityFromNBT(par1NBTTagCompound);
   time = par1NBTTagCompound.getLong("time");
   invul = par1NBTTagCompound.getBoolean("inv");
   estado = par1NBTTagCompound.getInteger("estado");
 }
Beispiel #13
0
 /** (abstract) Protected helper method to read subclass entity data from NBT. */
 public void readEntityFromNBT(NBTTagCompound var1) {
   super.readEntityFromNBT(var1);
   this.angerLevel = var1.getShort("Anger");
 }
Beispiel #14
0
 /** (abstract) Protected helper method to read subclass entity data from NBT. */
 public void readEntityFromNBT(NBTTagCompound p_70037_1_) {
   super.readEntityFromNBT(p_70037_1_);
   this.func_82215_s(p_70037_1_.getInteger("Invul"));
 }