Beispiel #1
0
        public static NbtTag CreateCompound(string[] keys, object[] values)
        {
            NbtTag compound = new NbtTagCompound();

            compound.Add(keys, values);
            return(compound);
        }
Beispiel #2
0
        public static NbtTag CreateCompound(params object[] values)
        {
            NbtTag compound = new NbtTagCompound();

            compound.Add(values);
            return(compound);
        }
Beispiel #3
0
        internal override NbtTag Clone()
        {
            NbtTagCompound compound = new NbtTagCompound();

            foreach (NbtTag tag in this)
            {
                compound.Add(tag.Name, tag);
            }
            return(compound);
        }
Beispiel #4
0
 internal override NbtTag Clone()
 {
     NbtTagCompound compound = new NbtTagCompound();
     foreach (NbtTag tag in this) compound.Add(tag.Name, tag);
     return compound;
 }