public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("id", (short)itemID); nbttagcompound.setByte("Count", (byte)stackSize); nbttagcompound.setShort("Damage", (short)itemDamage); return(nbttagcompound); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("Health", (short)health); nbttagcompound.setShort("HurtTime", (short)hurtTime); nbttagcompound.setShort("DeathTime", (short)deathTime); nbttagcompound.setShort("AttackTime", (short)attackTime); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("xTile", (short)xTile); nbttagcompound.setShort("yTile", (short)yTile); nbttagcompound.setShort("zTile", (short)zTile); nbttagcompound.setByte("inTile", (byte)inTile); nbttagcompound.setByte("shake", (byte)arrowShake); nbttagcompound.setByte("inGround", (byte)(inGround ? 1 : 0)); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setInteger("Type", minecartType); if (minecartType == 2) { nbttagcompound.setDouble("PushX", pushX); nbttagcompound.setDouble("PushZ", pushZ); nbttagcompound.setShort("Fuel", (short)fuel); } else if (minecartType == 1) { var nbttaglist = new NBTTagList(); for (int i = 0; i < cargoItems.Length; i++) { if (cargoItems[i] != null) { var nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setByte("Slot", (byte)i); cargoItems[i].writeToNBT(nbttagcompound1); nbttaglist.setTag(nbttagcompound1); } } nbttagcompound.setTag("Items", nbttaglist); } }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { base.writeEntityToNBT(nbttagcompound); nbttagcompound.setTag("Inventory", inventory.writeToNBT(new NBTTagList())); nbttagcompound.setInteger("Dimension", dimension); nbttagcompound.setBoolean("Sleeping", sleeping); nbttagcompound.setShort("SleepTimer", (short)sleepTimer); }
public virtual void writeToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setTag("Pos", newDoubleNBTList(new[] { posX, posY, posZ })); nbttagcompound.setTag("Motion", newDoubleNBTList(new[] { motionX, motionY, motionZ })); nbttagcompound.setTag("Rotation", newFloatNBTList(new[] { rotationYaw, rotationPitch })); nbttagcompound.setFloat("FallDistance", fallDistance); nbttagcompound.setShort("Fire", (short)fire); nbttagcompound.setShort("Air", (short)air); nbttagcompound.setBoolean("OnGround", onGround); writeEntityToNBT(nbttagcompound); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("Health", (byte) health); nbttagcompound.setShort("Age", (short) age); nbttagcompound.setCompoundTag("Item", item.writeToNBT(new NBTTagCompound())); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { base.writeEntityToNBT(nbttagcompound); nbttagcompound.setShort("Anger", (short)angerLevel); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { base.writeEntityToNBT(nbttagcompound); nbttagcompound.setTag("Inventory", inventory.writeToNBT(new NBTTagList())); nbttagcompound.setInteger("Dimension", dimension); nbttagcompound.setBoolean("Sleeping", sleeping); nbttagcompound.setShort("SleepTimer", (short) sleepTimer); }
public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("id", (short) itemID); nbttagcompound.setByte("Count", (byte) stackSize); nbttagcompound.setShort("Damage", (short) itemDamage); return nbttagcompound; }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("xTile", (short) xTileSnowball); nbttagcompound.setShort("yTile", (short) yTileSnowball); nbttagcompound.setShort("zTile", (short) zTileSnowball); nbttagcompound.setByte("inTile", (byte) inTileSnowball); nbttagcompound.setByte("shake", (byte) shakeSnowball); nbttagcompound.setByte("inGround", (byte) (inGroundSnowball ? 1 : 0)); }
public virtual void writeToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setTag("Pos", newDoubleNBTList(new[] { posX, posY, posZ })); nbttagcompound.setTag("Motion", newDoubleNBTList(new[] { motionX, motionY, motionZ })); nbttagcompound.setTag("Rotation", newFloatNBTList(new[] { rotationYaw, rotationPitch })); nbttagcompound.setFloat("FallDistance", fallDistance); nbttagcompound.setShort("Fire", (short) fire); nbttagcompound.setShort("Air", (short) air); nbttagcompound.setBoolean("OnGround", onGround); writeEntityToNBT(nbttagcompound); }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setInteger("Type", minecartType); if (minecartType == 2) { nbttagcompound.setDouble("PushX", pushX); nbttagcompound.setDouble("PushZ", pushZ); nbttagcompound.setShort("Fuel", (short) fuel); } else if (minecartType == 1) { var nbttaglist = new NBTTagList(); for (int i = 0; i < cargoItems.Length; i++) { if (cargoItems[i] != null) { var nbttagcompound1 = new NBTTagCompound(); nbttagcompound1.setByte("Slot", (byte) i); cargoItems[i].writeToNBT(nbttagcompound1); nbttaglist.setTag(nbttagcompound1); } } nbttagcompound.setTag("Items", nbttaglist); } }
public override void writeEntityToNBT(NBTTagCompound nbttagcompound) { nbttagcompound.setShort("Health", (byte)health); nbttagcompound.setShort("Age", (short)age); nbttagcompound.setCompoundTag("Item", item.writeToNBT(new NBTTagCompound())); }