geforkt von Mirrors/Paper
Add API to get Material from Boats and Minecarts
Dieser Commit ist enthalten in:
Ursprung
0b52df89b3
Commit
28333dc9b5
@ -181,4 +181,14 @@ public interface Boat extends Vehicle {
|
||||
ON_LAND,
|
||||
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;
|
||||
|
||||
import org.bukkit.GameRule;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.material.MaterialData;
|
||||
import org.bukkit.util.Vector;
|
||||
@ -148,4 +149,14 @@ public interface Minecart extends Vehicle {
|
||||
* @return the current block offset for this minecart.
|
||||
*/
|
||||
public int getDisplayBlockOffset();
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the {@link Material} that represents this Minecart type.
|
||||
*
|
||||
* @return the minecart material.
|
||||
*/
|
||||
@NotNull
|
||||
public Material getMinecartMaterial();
|
||||
// Paper end
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren