Add API to get Material from Boats and Minecarts
This commit is contained in:
@@ -181,4 +181,14 @@ public interface Boat extends Vehicle {
|
|||||||
ON_LAND,
|
ON_LAND,
|
||||||
IN_AIR;
|
IN_AIR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Gets the {@link Material} that represents this Boat type.
|
||||||
|
*
|
||||||
|
* @return the boat material.
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
public Material getBoatMaterial();
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
import org.bukkit.GameRule;
|
import org.bukkit.GameRule;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
import org.bukkit.material.MaterialData;
|
import org.bukkit.material.MaterialData;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
@@ -148,4 +149,14 @@ public interface Minecart extends Vehicle {
|
|||||||
* @return the current block offset for this minecart.
|
* @return the current block offset for this minecart.
|
||||||
*/
|
*/
|
||||||
public int getDisplayBlockOffset();
|
public int getDisplayBlockOffset();
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Gets the {@link Material} that represents this Minecart type.
|
||||||
|
*
|
||||||
|
* @return the minecart material.
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
public Material getMinecartMaterial();
|
||||||
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user