summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-09-25 11:20:51 -0700
committersk89q <the.sk89q@gmail.com>2011-09-25 11:20:51 -0700
commitb7c43fbff1dffef1b4c9c4e57633d8c16606db58 (patch)
tree0f6541a82f657e6b321c88030dfb91838e0a6521 /src/main/java/org/bukkit
parent8f8c62b71b76675903405df4f7f11edc1a7c6db6 (diff)
downloadcraftbukkit-b7c43fbff1dffef1b4c9c4e57633d8c16606db58.tar
craftbukkit-b7c43fbff1dffef1b4c9c4e57633d8c16606db58.tar.gz
craftbukkit-b7c43fbff1dffef1b4c9c4e57633d8c16606db58.tar.lz
craftbukkit-b7c43fbff1dffef1b4c9c4e57633d8c16606db58.tar.xz
craftbukkit-b7c43fbff1dffef1b4c9c4e57633d8c16606db58.zip
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.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftBoat.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftBoat.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftBoat.java
index 284fdd79..721b653e 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftBoat.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftBoat.java
@@ -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";