private static StringBuilder any(StringBuilder sb, NBTBase nbt) {
switch (nbt.getId()) {
case Constants.NBT.TAG_COMPOUND:
return compound(sb, (NBTTagCompound) nbt);
case Constants.NBT.TAG_LIST:
return list(sb, (NBTTagList) nbt);
case Constants.NBT.TAG_INT_ARRAY:
return intArray(sb, (NBTTagIntArray) nbt);
case Constants.NBT.TAG_STRING:
return string(sb, (NBTTagString) nbt);
case Constants.NBT.TAG_DOUBLE:
return _double(sb, (NBTTagDouble) nbt);
case Constants.NBT.TAG_FLOAT:
return _float(sb, (NBTTagFloat) nbt);
default:
return other(sb, nbt);
}
}
NBTToJson.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Easy-Editors
作者:
评论列表
文章目录