From 408903f1186bef9f9e32a21ea6d667ad2330bca0 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 16 Mar 2016 19:07:14 -0400 Subject: [PATCH] Add Boat#getWoodType and Boat#setWoodType(TreeSpecies) By: Matthew --- .../src/main/java/org/bukkit/entity/Boat.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Boat.java b/paper-api/src/main/java/org/bukkit/entity/Boat.java index 36d6e96955..db02115e9a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Boat.java +++ b/paper-api/src/main/java/org/bukkit/entity/Boat.java @@ -1,10 +1,26 @@ package org.bukkit.entity; +import org.bukkit.TreeSpecies; + /** * Represents a boat entity. */ public interface Boat extends Vehicle { + /** + * Gets the wood type of the boat. + * + * @return the wood type + */ + TreeSpecies getWoodType(); + + /** + * Sets the wood type of the boat. + * + * @param species the new wood type + */ + void setWoodType(TreeSpecies species); + /** * Gets the maximum speed of a boat. The speed is unrelated to the * velocity.