Code example for DataInput

Methods: readFloat

0
   void write(DataOutput par1DataOutput) throws IOException {
      par1DataOutput.writeFloat(this.data);
   } 
 
   void load(DataInput par1DataInput) throws IOException {
      this.data = par1DataInput.readFloat();
   } 
 
   public byte getId() { 
      return (byte)5; 
   } 
 
   public String toString() {
      return "" + this.data;
   } 
 
   public NBTBase copy() { 
      return new NBTTagFloat(this.getName(), this.data);
   } 
 
   public boolean equals(Object par1Obj) {