Code example for DataInput

Methods: readBooleanreadFloat

0
    private boolean d;
 
    public Packet27PlayerInput() {} 
 
    public void a(DataInput datainput) {
        this.a = datainput.readFloat();
        this.b = datainput.readFloat();
        this.c = datainput.readBoolean();
        this.d = datainput.readBoolean();
    } 
 
    public void a(DataOutput dataoutput) {
        dataoutput.writeFloat(this.a);
        dataoutput.writeFloat(this.b);
        dataoutput.writeBoolean(this.c);
        dataoutput.writeBoolean(this.d);
    } 
 
    public void handle(Connection connection) {
        connection.a(this);
Experience pair programming with AI  Get Codota for Java