diff options
author | lapry <lapry34@gmail.com> | 2016-03-01 08:30:03 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-01 08:30:03 +1100 |
commit | 58723fb7856f99a59eb80bd7c0a99de77e74c8f1 (patch) | |
tree | 49ad245c7d8cde236ee750c9b6747f5143e6a5d0 /src | |
parent | eb5cb1008e0602411f6cf1146204ff0a4cfbd640 (diff) | |
download | bukkit-58723fb7856f99a59eb80bd7c0a99de77e74c8f1.tar bukkit-58723fb7856f99a59eb80bd7c0a99de77e74c8f1.tar.gz bukkit-58723fb7856f99a59eb80bd7c0a99de77e74c8f1.tar.lz bukkit-58723fb7856f99a59eb80bd7c0a99de77e74c8f1.tar.xz bukkit-58723fb7856f99a59eb80bd7c0a99de77e74c8f1.zip |
Add fuel related methods to BrewingStand API
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/BrewingStand.java | 14 | ||||
-rw-r--r-- | src/main/java/org/bukkit/inventory/BrewerInventory.java | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/BrewingStand.java b/src/main/java/org/bukkit/block/BrewingStand.java index ba4fe9f7..f642e681 100644 --- a/src/main/java/org/bukkit/block/BrewingStand.java +++ b/src/main/java/org/bukkit/block/BrewingStand.java @@ -22,5 +22,19 @@ public interface BrewingStand extends BlockState, InventoryHolder { */ void setBrewingTime(int brewTime); + /** + * Get the level of current fuel for brewing. + * + * @return The fuel level + */ + int getFuelLevel(); + + /** + * Set the level of current fuel for brewing. + * + * @param level fuel level + */ + void setFuelLevel(int level); + public BrewerInventory getInventory(); } diff --git a/src/main/java/org/bukkit/inventory/BrewerInventory.java b/src/main/java/org/bukkit/inventory/BrewerInventory.java index 9cc31c97..3aaf17e1 100644 --- a/src/main/java/org/bukkit/inventory/BrewerInventory.java +++ b/src/main/java/org/bukkit/inventory/BrewerInventory.java @@ -1,5 +1,6 @@ package org.bukkit.inventory; +import org.bukkit.Material; import org.bukkit.block.BrewingStand; /** @@ -21,5 +22,20 @@ public interface BrewerInventory extends Inventory { */ void setIngredient(ItemStack ingredient); + /** + * Get the current fuel for brewing. + * + * @return The fuel + */ + ItemStack getFuel(); + + /** + * Set the current fuel for brewing. Generally only + * {@link Material#BLAZE_POWDER} will be of use. + * + * @param fuel The fuel + */ + void setFuel(ItemStack fuel); + BrewingStand getHolder(); } |