Java Code Examples for cn.nukkit.nbt.stream.NBTInputStream#readUTF()

The following examples show how to use cn.nukkit.nbt.stream.NBTInputStream#readUTF() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Tag.java    From Jupiter with GNU General Public License v3.0 5 votes vote down vote up
public static Tag readNamedTag(NBTInputStream dis) throws IOException {
    byte type = dis.readByte();
    if (type == 0) return new EndTag();

    String name = dis.readUTF();

    Tag tag = newTag(type, name);

    tag.load(dis);
    return tag;
}
 
Example 2
Source File: Tag.java    From Nukkit with GNU General Public License v3.0 5 votes vote down vote up
public static Tag readNamedTag(NBTInputStream dis) throws IOException {
    byte type = dis.readByte();
    if (type == 0) return new EndTag();

    String name = dis.readUTF();

    Tag tag = newTag(type, name);

    tag.load(dis);
    return tag;
}
 
Example 3
Source File: Tag.java    From Nukkit with GNU General Public License v3.0 5 votes vote down vote up
public static Tag readNamedTag(NBTInputStream dis) throws IOException {
    byte type = dis.readByte();
    if (type == 0) return new EndTag();

    String name = dis.readUTF();

    Tag tag = newTag(type, name);

    tag.load(dis);
    return tag;
}
 
Example 4
Source File: StringTag.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
@Override
void load(NBTInputStream dis) throws IOException {
    data = dis.readUTF();
}
 
Example 5
Source File: StringTag.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
void load(NBTInputStream dis) throws IOException {
    data = dis.readUTF();
}
 
Example 6
Source File: StringTag.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
@Override
void load(NBTInputStream dis) throws IOException {
    data = dis.readUTF();
}