/** (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); }
@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); } }
@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)); }
/** (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); } }
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) { super.writeEntityToNBT(par1NBTTagCompound); }
@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); }
/** (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); }
/** (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); }
/** (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()); }