io.github.karlatemp.mxlib.nbt.visitor.NBTVisitor Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2018-2021 Karlatemp. All rights reserved.
* @author Karlatemp
*
* MXLib/MXLib.mxlib-nbt.main/NBTVisitor.java
*
* Use of this source code is governed by the MIT license that can be found via the following link.
*
* https://github.com/Karlatemp/MxLib/blob/master/LICENSE
*/
package io.github.karlatemp.mxlib.nbt.visitor;
import io.github.karlatemp.mxlib.nbt.*;
public interface NBTVisitor {
default void visitByte(String name, NBTTagByte value) {
}
default void visitByteArray(String name, NBTTagByteArray value) {
}
default void visitDouble(String name, NBTTagDouble value) {
}
default void visitEnd() {
}
default void visitFloat(String name, NBTTagFloat value) {
}
default void visitInt(String name, NBTTagInt value) {
}
default void visitIntArray(String name, NBTTagIntArray value) {
}
default void visitList(String name, NBTTagList value) {
}
default void visitLong(String name, NBTTagLong value) {
}
default void visitLongArray(String name, NBTTagLongArray value) {
}
default void visitShort(String name, NBTTagShort value) {
}
default void visitString(String name, NBTTagString value) {
}
default NBTVisitor visitCompound(String name, NBTTagCompound value) {
return null;
}
}