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

    if (this.dataWatcher.getWatchableObjectByte(17) == 1) {
      par1NBTTagCompound.setBoolean("powered", true);
    }

    par1NBTTagCompound.setShort("Fuse", (short) this.fuseTime);
    par1NBTTagCompound.setByte("ExplosionRadius", (byte) this.explosionRadius);
  }
Пример #2
0
 @Override
 public void writeEntityToNBT(NBTTagCompound nbt) {
   super.writeEntityToNBT(nbt);
   nbt.setShort("Fuse", (short) this.fuseTicks);
   if (ex != null) {
     nbt.setString("ex", ex.getID());
     nbt.setDouble("size", ex_size);
     if (ex_data != null) nbt.setTag("ex_data", ex_data);
   }
 }
Пример #3
0
  @Override
  public void writeEntityToNBT(NBTTagCompound data) {
    super.writeEntityToNBT(data);

    data.setInteger("state", getState().ordinal());

    data.setInteger("charge", getCharge());

    data.setInteger("curattack", getCurrentAttack() == null ? -1 : getCurrentAttack().ordinal());
  }
 @Override
 /**
  * (abstract) Protected helper method to write subclass entity data to NBT.
  */
 public void writeEntityToNBT(NBTTagCompound tagCompound)
 {
     super.writeEntityToNBT(tagCompound);
     IBlockState iblockstate = this.func_175489_ck();
     tagCompound.setShort("carried", (short)Block.getIdFromBlock(iblockstate.getBlock()));
     tagCompound.setShort("carriedData", (short)iblockstate.getBlock().getMetaFromState(iblockstate));
 }
Пример #5
0
  /** (abstract) Protected helper method to write subclass entity data to NBT. */
  public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
    super.writeEntityToNBT(par1NBTTagCompound);

    if (this.isChild()) {
      par1NBTTagCompound.setBoolean("IsBaby", true);
    }

    if (this.isVillager()) {
      par1NBTTagCompound.setBoolean("IsVillager", true);
    }

    par1NBTTagCompound.setInteger("ConversionTime", this.isConverting() ? this.conversionTime : -1);
  }
  @Override
  public void writeEntityToNBT(NBTTagCompound nbt) {
    super.writeEntityToNBT(nbt);

    if (this.roomCoords != null) {
      nbt.setDouble("roomCoordsX", this.roomCoords.x);
      nbt.setDouble("roomCoordsY", this.roomCoords.y);
      nbt.setDouble("roomCoordsZ", this.roomCoords.z);
      nbt.setDouble("roomSizeX", this.roomSize.x);
      nbt.setDouble("roomSizeY", this.roomSize.y);
      nbt.setDouble("roomSizeZ", this.roomSize.z);
    }
  }
Пример #7
0
 public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
   super.writeEntityToNBT(par1NBTTagCompound);
 }
Пример #8
0
 @Override
 public void writeEntityToNBT(NBTTagCompound nbt) {
   super.writeEntityToNBT(nbt);
   nbt.setInteger("skin", getSkin());
 }
 /** (abstract) Protected helper method to write subclass entity data to NBT. */
 public void writeEntityToNBT(NBTTagCompound nbttagcompound) {
   super.writeEntityToNBT(nbttagcompound);
   nbttagcompound.setBoolean("Hungry", hungry);
   nbttagcompound.setFloat("ModelSize", modelsize);
 }
Пример #10
0
 /** (abstract) Protected helper method to write subclass entity data to NBT. */
 public void writeEntityToNBT(NBTTagCompound p_70014_1_) {
   super.writeEntityToNBT(p_70014_1_);
   p_70014_1_.setByte("SkeletonType", (byte) this.getSkeletonType());
 }
 public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
   super.writeEntityToNBT(par1NBTTagCompound);
   par1NBTTagCompound.setLong("time", time);
   par1NBTTagCompound.setBoolean("inv", this.invul);
   par1NBTTagCompound.setInteger("estado", estado);
 }
Пример #12
0
 /** (abstract) Protected helper method to write subclass entity data to NBT. */
 public void writeEntityToNBT(NBTTagCompound var1) {
   super.writeEntityToNBT(var1);
   var1.setShort("Anger", (short) this.angerLevel);
 }
Пример #13
0
 /** (abstract) Protected helper method to write subclass entity data to NBT. */
 public void writeEntityToNBT(NBTTagCompound p_70014_1_) {
   super.writeEntityToNBT(p_70014_1_);
   p_70014_1_.setInteger("Invul", this.func_82212_n());
 }