Added MaxSpeed methods to minecards. Added MaxSpeed methods to boats. Added SlowWhenEmpty, FlyingMod, and DerailedMod methods to minecarts.

Signed-off-by: afforess <afforess@gmail.com>

By: afforess <afforess@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-02-12 00:25:48 -05:00
parent 8d18ce772e
commit cc9f2e45fb
2 changed files with 75 additions and 1 deletions

View File

@@ -6,4 +6,17 @@ package org.bukkit.entity;
* @author sk89q
*/
public interface Boat extends Vehicle {
/**
* Gets the maximum speed of a boat. The speed is unrelated to the velocity.
*
* @param speed
*/
public double getMaxSpeed();
/**
* Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D.
*
* @param speed
*/
public void setMaxSpeed(double speed);
}