Code example for DataOutput

Methods: writeInt

0
        super(s);
        this.data = i;
    } 
 
    void write(DataOutput dataoutput) {
        dataoutput.writeInt(this.data);
    } 
 
    void load(DataInput datainput, int i) {
        this.data = datainput.readInt();
    } 
 
    public byte getTypeId() { 
        return (byte) 3; 
    } 
 
    public String toString() {
        return "" + this.data;
    } 
 
    public NBTBase clone() {