diff options
author | md_5 <git@md-5.net> | 2016-03-01 08:30:03 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-01 08:30:03 +1100 |
commit | e6f54cc356a3bb2a0281168fd72319bddcab779b (patch) | |
tree | 20fcb8d5763bf49d202aa7a470f518e5794c0075 | |
parent | a4971ffe76bc5059a2dd6705ea404e51b9721a12 (diff) | |
download | bukkit-e6f54cc356a3bb2a0281168fd72319bddcab779b.tar bukkit-e6f54cc356a3bb2a0281168fd72319bddcab779b.tar.gz bukkit-e6f54cc356a3bb2a0281168fd72319bddcab779b.tar.lz bukkit-e6f54cc356a3bb2a0281168fd72319bddcab779b.tar.xz bukkit-e6f54cc356a3bb2a0281168fd72319bddcab779b.zip |
Deprecate Boat API
Boats are complex and the way in which they operate is generally implementation specific. Many of these methods have not worked for several CraftBukkit versions, and are now not guaranteed to work at all due to new internal mechanics.
-rw-r--r-- | src/main/java/org/bukkit/entity/Boat.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Boat.java b/src/main/java/org/bukkit/entity/Boat.java index ed2d1788..36d6e969 100644 --- a/src/main/java/org/bukkit/entity/Boat.java +++ b/src/main/java/org/bukkit/entity/Boat.java @@ -10,14 +10,18 @@ public interface Boat extends Vehicle { * velocity. * * @return The max speed. + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public double getMaxSpeed(); /** * Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D. * * @param speed The max speed. + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public void setMaxSpeed(double speed); /** @@ -25,7 +29,9 @@ public interface Boat extends Vehicle { * boats. The default is 0.2. * * @return The rate of deceleration + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public double getOccupiedDeceleration(); /** @@ -34,7 +40,9 @@ public interface Boat extends Vehicle { * The default is 0.2. * * @param rate deceleration rate + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public void setOccupiedDeceleration(double rate); /** @@ -43,7 +51,9 @@ public interface Boat extends Vehicle { * deceleration is imposed. * * @return The rate of deceleration + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public double getUnoccupiedDeceleration(); /** @@ -53,20 +63,26 @@ public interface Boat extends Vehicle { * indicate that no additional deceleration is imposed. * * @param rate deceleration rate + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public void setUnoccupiedDeceleration(double rate); /** * Get whether boats can work on land. * * @return whether boats can work on land + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public boolean getWorkOnLand(); /** * Set whether boats can work on land. * * @param workOnLand whether boats can work on land + * @deprecated boats are complex and many of these methods do not work correctly across multiple versions. */ + @Deprecated public void setWorkOnLand(boolean workOnLand); } |