Example #1
0
 public override void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     base.WriteToNBT(nbttagcompound);
     nbttagcompound.SetString("Text1", Lines[0]);
     nbttagcompound.SetString("Text2", Lines[1]);
     nbttagcompound.SetString("Text3", Lines[2]);
     nbttagcompound.SetString("Text4", Lines[3]);
 }
Example #2
0
 protected internal override void WriteEntityToNBT(net.minecraft.src.NBTTagCompound
                                                   nbttagcompound)
 {
     base.WriteEntityToNBT(nbttagcompound);
     nbttagcompound.SetBoolean("Angry", GetIsAngry());
     nbttagcompound.SetBoolean("Sitting", GetIsSitting());
     if (GetOwner() == null)
     {
         nbttagcompound.SetString("Owner", string.Empty);
     }
     else
     {
         nbttagcompound.SetString("Owner", GetOwner());
     }
 }
Example #3
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 #4
0
        public virtual bool AddEntityID(net.minecraft.src.NBTTagCompound nbttagcompound)
        {
            string s = GetEntityString();

            if (isDead || s == null)
            {
                return(false);
            }
            else
            {
                nbttagcompound.SetString("id", s);
                WriteToNBT(nbttagcompound);
                return(true);
            }
        }
Example #5
0
        public virtual void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
        {
            string s = (string)classToNameMap[this.GetType()];

            if (s == null)
            {
                throw new System.Exception((new java.lang.StringBuilder()).Append(this.GetType()).Append(" is missing a mapping! This is a bug!").ToString());
            }
            else
            {
                nbttagcompound.SetString("id", s);
                nbttagcompound.SetInteger("x", xCoord);
                nbttagcompound.SetInteger("y", yCoord);
                nbttagcompound.SetInteger("z", zCoord);
                return;
            }
        }
Example #6
0
 private void SaveNBTTag(net.minecraft.src.NBTTagCompound nbttagcompound, net.minecraft.src.NBTTagCompound
                         nbttagcompound1)
 {
     nbttagcompound.SetLong("RandomSeed", randomSeed);
     nbttagcompound.SetInteger("SpawnX", spawnX);
     nbttagcompound.SetInteger("SpawnY", spawnY);
     nbttagcompound.SetInteger("SpawnZ", spawnZ);
     nbttagcompound.SetLong("Time", worldTime);
     nbttagcompound.SetLong("SizeOnDisk", sizeOnDisk);
     nbttagcompound.SetLong("LastPlayed", Sharpen.Runtime.CurrentTimeMillis());
     nbttagcompound.SetString("LevelName", levelName);
     nbttagcompound.SetInteger("version", saveVersion);
     nbttagcompound.SetInteger("rainTime", rainTime);
     nbttagcompound.SetBoolean("raining", isRaining);
     nbttagcompound.SetInteger("thunderTime", thunderTime);
     nbttagcompound.SetBoolean("thundering", isThundering);
     if (nbttagcompound1 != null)
     {
         nbttagcompound.SetCompoundTag("Player", nbttagcompound1);
     }
 }
Example #7
0
 public override void WriteToNBT(net.minecraft.src.NBTTagCompound nbttagcompound)
 {
     base.WriteToNBT(nbttagcompound);
     nbttagcompound.SetString("EntityId", mobName);
     nbttagcompound.SetShort("Delay", (short)spawnDelay);
 }