org.bukkit.inventory
Interface BrewerInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface BrewerInventory
extends Inventory

Interface to the inventory of a Brewing Stand.


Method Summary
 BrewingStand getHolder()
          Gets the block or entity belonging to the open inventory
 ItemStack getIngredient()
          Get the current ingredient for brewing.
 void setIngredient(ItemStack ingredient)
          Set the current ingredient for brewing.
 
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize
 

Method Detail

getIngredient

ItemStack getIngredient()
Get the current ingredient for brewing.

Returns:
The ingredient.

setIngredient

void setIngredient(ItemStack ingredient)
Set the current ingredient for brewing.

Parameters:
ingredient - The ingredient

getHolder

BrewingStand getHolder()
Description copied from interface: Inventory
Gets the block or entity belonging to the open inventory

Specified by:
getHolder in interface Inventory
Returns:
The holder of the inventory; null if it has no holder.


Copyright © 2014. All rights reserved.