Code example for DataInput

Methods: readByte

0
    void write(DataOutput dataoutput) {
        dataoutput.writeByte(this.data);
    } 
 
    void load(DataInput datainput, int i) {
        this.data = datainput.readByte();
    } 
 
    public byte getTypeId() { 
        return (byte) 1; 
    } 
 
    public String toString() {
        return "" + this.data;
    } 
 
    public NBTBase clone() { 
        return new NBTTagByte(this.getName(), this.data);
    } 
 
    public boolean equals(Object object) {