mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Boat get/set (double) occupied acceleration, (double) unoccupied deceleration, (boolean) work on land. Good values to maximize boat utility: 0.6 (fast accel.), 0.99 (no loss of boat), true/false, respectively.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
4c3b2cbd0b
commit
35a5504f20
@ -22,6 +22,32 @@ public class CraftBoat extends CraftVehicle implements Boat {
|
||||
}
|
||||
}
|
||||
|
||||
public double getOccupiedDeceleration() {
|
||||
return boat.occupiedDeceleration;
|
||||
}
|
||||
|
||||
public void setOccupiedDeceleration(double speed) {
|
||||
if (speed >= 0D) {
|
||||
boat.occupiedDeceleration = speed;
|
||||
}
|
||||
}
|
||||
|
||||
public double getUnoccupiedDeceleration() {
|
||||
return boat.unoccupiedDeceleration;
|
||||
}
|
||||
|
||||
public void setUnoccupiedDeceleration(double speed) {
|
||||
boat.unoccupiedDeceleration = speed;
|
||||
}
|
||||
|
||||
public boolean getWorkOnLand() {
|
||||
return boat.landBoats;
|
||||
}
|
||||
|
||||
public void setWorkOnLand(boolean workOnLand) {
|
||||
boat.landBoats = workOnLand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftBoat";
|
||||
|
Loading…
Reference in New Issue
Block a user