Code example for DataInput

Methods: readLong

0
 
    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);
    } 
 
    public boolean equals(Object object) {
        if (super.equals(object)) {
            NBTTagLong nbttaglong = (NBTTagLong) object;