@@ -0,0 +1,1958 @@
+/*%0A * Copyright (c) 2016 MCPhoton %3Chttp://mcphoton.org%3E and contributors.%0A *%0A * This file is part of the Photon API %3Chttps://github.com/mcphoton/Photon-API%3E.%0A *%0A * The Photon API is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Lesser General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * The Photon API is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A * GNU Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0Apackage org.mcphoton.config;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0Aimport java.util.Map;%0A%0A/**%0A * A NBT configuration.%0A *%0A * @see http://wiki.vg/NBT%0A * @author TheElectronWill%0A */%0Apublic class NbtConfiguration extends BaseConfiguration %7B%0A%0A%09private final String name;%0A%0A%09public NbtConfiguration() %7B%0A%09%09super();%0A%09%09name = %22%22;%0A%09%7D%0A%0A%09public NbtConfiguration(Map%3CString, Object%3E data) %7B%0A%09%09super(data);%0A%09%09name = %22%22;%0A%09%7D%0A%0A%09public NbtConfiguration(Map%3CString, Object%3E data, String name) %7B%0A%09%09super(data);%0A%09%09this.name = name;%0A%09%7D%0A%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09public boolean containsByteArray(String key) %7B%0A%09%09return get(key) instanceof byte%5B%5D;%0A%09%7D%0A%0A%09public boolean containsIntArray(String key) %7B%0A%09%09return get(key) instanceof int%5B%5D;%0A%09%7D%0A%0A%09public byte%5B%5D getByteArray(String key) %7B%0A%09%09return (byte%5B%5D) get(key);%0A%09%7D%0A%0A%09public int%5B%5D getIntArray(String key) %7B%0A%09%09return (int%5B%5D) get(key);%0A%09%7D%0A%0A%09@Override%0A%09public void readFrom(InputStream in) throws IOException %7B%0A%09%7D%0A%0A%09@Override%0A%09public void writeTo(OutputStream out) throws IOException %7B%0A%09%09// defined by the photon's implementation%0A%09%7D%0A%0A%7D%0A

Implement the nbt configuration