Example #1
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     nbttagcompound.SetShort("xTile", (short)xTileSnowball);
     nbttagcompound.SetShort("yTile", (short)yTileSnowball);
     nbttagcompound.SetShort("zTile", (short)zTileSnowball);
     nbttagcompound.SetByte("inTile", unchecked ((byte)inTileSnowball));
     nbttagcompound.SetByte("shake", unchecked ((byte)shakeSnowball));
     nbttagcompound.SetByte("inGround", unchecked ((byte)(inGroundSnowball ? 1 : 0)));
 }
Example #2
0
 public override void Func_28147_b(net.minecraft.src.NBTTagCompound nbttagcompound
                                   )
 {
     nbttagcompound.SetByte("dimension", field_28162_d);
     nbttagcompound.SetInteger("xCenter", field_28164_b);
     nbttagcompound.SetInteger("zCenter", field_28163_c);
     nbttagcompound.SetByte("scale", field_28161_e);
     nbttagcompound.SetShort("width", (short)128);
     nbttagcompound.SetShort("height", (short)128);
     nbttagcompound.SetByteArray("colors", field_28160_f);
 }
Example #3
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     nbttagcompound.SetShort("xTile", (short)xTile);
     nbttagcompound.SetShort("yTile", (short)yTile);
     nbttagcompound.SetShort("zTile", (short)zTile);
     nbttagcompound.SetByte("inTile", unchecked ((byte)inTile));
     nbttagcompound.SetByte("inData", unchecked ((byte)field_28011_h));
     nbttagcompound.SetByte("shake", unchecked ((byte)arrowShake));
     nbttagcompound.SetByte("inGround", unchecked ((byte)(inGround ? 1 : 0)));
     nbttagcompound.SetBoolean("player", field_28012_a);
 }
Example #4
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.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)
         {
             net.minecraft.src.NBTTagList nbttaglist = new net.minecraft.src.NBTTagList();
             for (int i = 0; i < cargoItems.Length; i++)
             {
                 if (cargoItems[i] != null)
                 {
                     net.minecraft.src.NBTTagCompound nbttagcompound1 = new net.minecraft.src.NBTTagCompound
                                                                            ();
                     nbttagcompound1.SetByte("Slot", unchecked ((byte)i));
                     cargoItems[i].WriteToNBT(nbttagcompound1);
                     nbttaglist.SetTag(nbttagcompound1);
                 }
             }
             nbttagcompound.SetTag("Items", nbttaglist);
         }
     }
 }
Example #5
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     base.WriteEntityToNBT(nbttagcompound);
     nbttagcompound.SetBoolean("Sheared", Func_21069_f_());
     nbttagcompound.SetByte("Color", unchecked ((byte)GetFleeceColor()));
 }
 public virtual net.minecraft.src.NBTTagList WriteToNBT(net.minecraft.src.NBTTagList
                                                        nbttaglist)
 {
     for (int i = 0; i < mainInventory.Length; i++)
     {
         if (mainInventory[i] != null)
         {
             net.minecraft.src.NBTTagCompound nbttagcompound = new net.minecraft.src.NBTTagCompound
                                                                   ();
             nbttagcompound.SetByte("Slot", unchecked ((byte)i));
             mainInventory[i].WriteToNBT(nbttagcompound);
             nbttaglist.SetTag(nbttagcompound);
         }
     }
     for (int j = 0; j < armorInventory.Length; j++)
     {
         if (armorInventory[j] != null)
         {
             net.minecraft.src.NBTTagCompound nbttagcompound1 = new net.minecraft.src.NBTTagCompound
                                                                    ();
             nbttagcompound1.SetByte("Slot", unchecked ((byte)(j + 100)));
             armorInventory[j].WriteToNBT(nbttagcompound1);
             nbttaglist.SetTag(nbttagcompound1);
         }
     }
     return(nbttaglist);
 }
Example #7
0
 public net.minecraft.src.NBTTagCompound WriteToNBT(net.minecraft.src.NBTTagCompound
                                                    nbttagcompound)
 {
     nbttagcompound.SetShort("id", (short)itemID);
     nbttagcompound.SetByte("Count", unchecked ((byte)stackSize));
     nbttagcompound.SetShort("Damage", (short)itemDamage);
     return(nbttagcompound);
 }
Example #8
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     nbttagcompound.SetByte("Dir", unchecked ((byte)direction));
     nbttagcompound.SetString("Motive", art.title);
     nbttagcompound.SetInteger("TileX", xPosition);
     nbttagcompound.SetInteger("TileY", yPosition);
     nbttagcompound.SetInteger("TileZ", zPosition);
 }
Example #9
0
 public override void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     base.WriteToNBT(nbttagcompound);
     net.minecraft.src.NBTTagList nbttaglist = new net.minecraft.src.NBTTagList();
     for (int i = 0; i < items.Length; i++)
     {
         if (items[i] != null)
         {
             net.minecraft.src.NBTTagCompound nbttagcompound1 = new net.minecraft.src.NBTTagCompound
                                                                    ();
             nbttagcompound1.SetByte("Slot", unchecked ((byte)i));
             items[i].WriteToNBT(nbttagcompound1);
             nbttaglist.SetTag(nbttagcompound1);
         }
     }
     nbttagcompound.SetTag("Items", nbttaglist);
 }
Example #10
0
 public override void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     base.WriteToNBT(nbttagcompound);
     nbttagcompound.SetShort("BurnTime", (short)furnaceBurnTime);
     nbttagcompound.SetShort("CookTime", (short)furnaceCookTime);
     net.minecraft.src.NBTTagList nbttaglist = new net.minecraft.src.NBTTagList();
     for (int i = 0; i < furnaceItemStacks.Length; i++)
     {
         if (furnaceItemStacks[i] != null)
         {
             net.minecraft.src.NBTTagCompound nbttagcompound1 = new net.minecraft.src.NBTTagCompound
                                                                    ();
             nbttagcompound1.SetByte("Slot", unchecked ((byte)i));
             furnaceItemStacks[i].WriteToNBT(nbttagcompound1);
             nbttaglist.SetTag(nbttagcompound1);
         }
     }
     nbttagcompound.SetTag("Items", nbttaglist);
 }
Example #11
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     nbttagcompound.SetByte("Fuse", unchecked ((byte)fuse));
 }
Example #12
0
 public override void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     base.WriteToNBT(nbttagcompound);
     nbttagcompound.SetByte("note", note);
 }