package me.deftware.client.framework.nbt;

import net.minecraft.nbt.CompoundTag;

/**
 * @author Deftware
 */
public class NbtCompound {

	private final CompoundTag compound;

	public NbtCompound(CompoundTag compound) {
		this.compound = compound;
	}

	public NbtCompound() {
		this.compound = new CompoundTag();
	}

	public boolean isValid() {
		return compound != null;
	}

	public boolean contains(String key) {
		return compound.contains(key);
	}

	public boolean contains(String key, int type) {
		return compound.contains(key, type);
	}

	public NbtCompound get(String key) {
		return new NbtCompound(compound.getCompound(key));
	}

	public CompoundTag getMinecraftCompound() {
		return compound;
	}

	public void setTagInfo(String key, NbtList list) {
		compound.put(key, list.getMinecraftListTag());
	}

}

@@ -441,24 +441,118 @@
 s(key);%0A%09%7D%0A%0A
+%09public boolean getBoolean(String key) %7B%0A%09%09return getMinecraftCompound().getBoolean(key);%0A%09%7D%0A%0A
 %09public bool

Add getBoolean to nbt