All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.entity.vehicle.PlayerVehicleInformation Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.entity.vehicle;

public class PlayerVehicleInformation {

    private float sideways;
    private float forward;
    private boolean jump;
    private boolean unmount;

    public float getSideways() {
        return sideways;
    }

    public float getForward() {
        return forward;
    }

    public boolean shouldJump() {
        return jump;
    }

    public boolean shouldUnmount() {
        return unmount;
    }

    /**
     * Refresh internal data
     *
     * @param sideways the new sideways value
     * @param forward  the new forward value
     * @param jump     the new jump value
     * @param unmount  the new unmount value
     */
    public void refresh(float sideways, float forward, boolean jump, boolean unmount) {
        this.sideways = sideways;
        this.forward = forward;
        this.jump = jump;
        this.unmount = unmount;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy