Code example for DataOutput

Methods: writeLong

0
    } 
 
    void write(DataOutput dataoutput) {
        dataoutput.writeLong(this.data);
    } 
 
    void load(DataInput datainput, int i) {
        this.data = datainput.readLong();
    } 
 
    public byte getTypeId() { 
        return (byte) 4; 
    } 
 
    public String toString() {
        return "" + this.data;
    } 
 
    public NBTBase clone() { 
        return new NBTTagLong(this.getName(), this.data);
    }