Added minecart classes, vehicle class, and the ability to spawn minecarts. StorageMinecart needs a getInventory(), but that is waiting on the addition of inventory code.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
22
paper-api/src/main/java/org/bukkit/Minecart.java
Normal file
22
paper-api/src/main/java/org/bukkit/Minecart.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* Represents a minecart entity.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface Minecart extends Vehicle {
|
||||
/**
|
||||
* Sets a minecart's damage.
|
||||
*
|
||||
* @param damage over 40 to "kill" a minecart
|
||||
*/
|
||||
public void setDamage(int damage);
|
||||
|
||||
/**
|
||||
* Gets a minecart's damage.
|
||||
*
|
||||
* @param damage
|
||||
*/
|
||||
public int getDamage();
|
||||
}
|
||||
Reference in New Issue
Block a user