diff options
author | sk89q <the.sk89q@gmail.com> | 2011-09-25 11:20:47 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-09-25 11:20:47 -0700 |
commit | b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d (patch) | |
tree | 4191eb6925f9ab4a4dd87ff4d4d90bea0a3f6be1 | |
parent | 80b7d27d238140cc21ad547719c34935b16ba8c4 (diff) | |
download | bukkit-b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d.tar bukkit-b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d.tar.gz bukkit-b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d.tar.lz bukkit-b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d.tar.xz bukkit-b76a86b572a4ccce5cbdc0d977eb7d2b78f1047d.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.
-rw-r--r-- | src/main/java/org/bukkit/entity/Boat.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Boat.java b/src/main/java/org/bukkit/entity/Boat.java index 02c3edd7..34df95f1 100644 --- a/src/main/java/org/bukkit/entity/Boat.java +++ b/src/main/java/org/bukkit/entity/Boat.java @@ -20,4 +20,54 @@ public interface Boat extends Vehicle { * @param speed The max speed. */ public void setMaxSpeed(double speed); + + /** + * Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied + * boats. The default is 0.2. + * + * @return + */ + public double getOccupiedDeceleration(); + + /** + * Sets the deceleration rate (newSpeed = curSpeed * rate) of occupied + * boats. Setting this to a higher value allows for quicker acceleration. + * The default is 0.2. + * + * @param speed deceleration rate + */ + public void setOccupiedDeceleration(double rate); + + /** + * Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied + * boats. The default is -1. Values below 0 indicate that no additional + * deceleration is imposed. + * + * @return + */ + public double getUnoccupiedDeceleration(); + + /** + * Sets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied + * boats. Setting this to a higher value allows for quicker deceleration + * of boats when a player disembarks. The default is -1. Values below 0 + * indicate that no additional deceleration is imposed. + * + * @param rate deceleration rate + */ + public void setUnoccupiedDeceleration(double rate); + + /** + * Get whether boats can work on land. + * + * @return whether boats can work on land + */ + public boolean getWorkOnLand(); + + /** + * Set whether boats can work on land. + * + * @param workOnLand whether boats can work on land + */ + public void setWorkOnLand(boolean workOnLand); } |