@@ -7,19 +7,35 @@ import org.bukkit.util.Vector;
|
||||
*/
|
||||
public interface Minecart extends Vehicle {
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards compatibility.
|
||||
* It will not exist at runtime and should not be used under any
|
||||
* circumstances.
|
||||
*/
|
||||
@Deprecated
|
||||
public void _INVALID_setDamage(int damage);
|
||||
|
||||
/**
|
||||
* Sets a minecart's damage.
|
||||
*
|
||||
* @param damage over 40 to "kill" a minecart
|
||||
*/
|
||||
public void setDamage(int damage);
|
||||
public void setDamage(double damage);
|
||||
|
||||
/**
|
||||
* This method exists for legacy reasons to provide backwards compatibility.
|
||||
* It will not exist at runtime and should not be used under any
|
||||
* circumstances.
|
||||
*/
|
||||
@Deprecated
|
||||
public int _INVALID_getDamage();
|
||||
|
||||
/**
|
||||
* Gets a minecart's damage.
|
||||
*
|
||||
* @return The damage
|
||||
*/
|
||||
public int getDamage();
|
||||
public double getDamage();
|
||||
|
||||
/**
|
||||
* Gets the maximum speed of a minecart. The speed is unrelated to the velocity.
|
||||
|
||||
Reference in New Issue
Block a user