Code example for DataOutput

Methods: writeFloat

0
        super(s);
        this.data = f;
    } 
 
    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() {