SPIGOT-7933: Improve custom Minecart max speed

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-11-03 09:22:16 +11:00
parent 5b6f5c4a3a
commit 36faa64876

View file

@ -31,19 +31,15 @@ public interface Minecart extends Vehicle {
* velocity.
*
* @return The max speed
* @see GameRule#MINECART_MAX_SPEED
*/
@Deprecated
public double getMaxSpeed();
/**
* Sets the maximum speed of a minecart. Must be nonnegative. Default is
* 0.4D.
* 0.4D or {@link GameRule#MINECART_MAX_SPEED}.
*
* @param speed The max speed
* @see GameRule#MINECART_MAX_SPEED
*/
@Deprecated
public void setMaxSpeed(double speed);
/**