Exemplo n.º 1
0
        public bool GetUnbreakable()
        {
            CompoundTag tag = this.NamedTag;

            if (!tag.Exist("Unbreakable"))
            {
                return(false);
            }
            return(tag.GetBool("Unbreakable"));
        }
Exemplo n.º 2
0
        public bool GetUnbreakable()
        {
            if (!this.HasTags)
            {
                return(false);
            }

            CompoundTag tag = this.GetNamedTag();

            if (!tag.Exist("Unbreakable"))
            {
                return(false);
            }
            return(tag.GetBool("Unbreakable"));
        }
Exemplo n.º 3
0
        public void NBTIOTests_ReadRawFileTest()
        {
            CompoundTag tag = NBTIO.ReadRawFile(Environment.CurrentDirectory + "\\test.nbt");

            tag.GetBool("bool");
            tag.GetByte("byte");
            tag.GetByteArray("byteArray");
            tag.GetShort("short");
            tag.GetInt("int");
            tag.GetIntArray("intArray");
            tag.GetLong("long");
            tag.GetLongArray("longArray");
            tag.GetFloat("float");
            tag.GetDouble("double");
            tag.GetList("list");
            tag.GetCompound("com");
            Console.WriteLine(tag);
        }