Code example for DataInput

Methods: readInt

0
    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() { 
        return new NBTTagInt(this.getName(), this.data);
    } 
 
    public boolean equals(Object object) {