public bool GetUnbreakable() { CompoundTag tag = this.NamedTag; if (!tag.Exist("Unbreakable")) { return(false); } return(tag.GetBool("Unbreakable")); }
public bool GetUnbreakable() { if (!this.HasTags) { return(false); } CompoundTag tag = this.GetNamedTag(); if (!tag.Exist("Unbreakable")) { return(false); } return(tag.GetBool("Unbreakable")); }
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); }