Add API to get Material from Boats and Minecarts

This commit is contained in:
Madeline Miller
2020-12-31 12:48:38 +10:00
parent 0b52df89b3
commit 28333dc9b5
2 changed files with 21 additions and 0 deletions

View File

@@ -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
}