Code example for DataInput

Methods: readFloat

0
    void write(DataOutput dataoutput) {
        dataoutput.writeFloat(this.data);
    } 
 
    void load(DataInput datainput, int i) {
        this.data = datainput.readFloat();
    } 
 
    public byte getTypeId() { 
        return (byte) 5; 
    } 
 
    public String toString() {
        return "" + this.data;
    } 
 
    public NBTBase clone() { 
        return new NBTTagFloat(this.getName(), this.data);
    } 
 
Connect your IDE to all the code out there  Get Codota for Java