Class CloudBrewingInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudContainer
org.cloudburstmc.server.inventory.CloudBrewingInventory
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.BrewingInventory,org.cloudburstmc.api.inventory.ContainerInventory,org.cloudburstmc.api.inventory.Inventory
public class CloudBrewingInventory
extends CloudContainer
implements org.cloudburstmc.api.inventory.BrewingInventory
-
Field Summary
FieldsFields inherited from class org.cloudburstmc.server.inventory.BaseInventory
holder, maxStackSize, name, size, slots, title, type, viewersFields inherited from interface org.cloudburstmc.api.inventory.Inventory
MAX_STACK -
Constructor Summary
ConstructorsConstructorDescriptionCloudBrewingInventory(org.cloudburstmc.api.blockentity.BrewingStand brewingStand) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.item.ItemStackgetFuel()org.cloudburstmc.api.blockentity.BrewingStandorg.cloudburstmc.api.item.ItemStackvoidonSlotChange(int index, org.cloudburstmc.api.item.ItemStack before, boolean send)voidsetFuel(org.cloudburstmc.api.item.ItemStack fuel)voidsetIngredient(org.cloudburstmc.api.item.ItemStack item)Methods inherited from class org.cloudburstmc.server.inventory.CloudContainer
calculateRedstone, onClose, onOpen, sendBlockEventPacketMethods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, open, remove, removeItem, saveInventory, sendContents, sendSlot, setContents, setItem, setMaxStackSize, setSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.inventory.BrewingInventory
getTypeMethods inherited from interface org.cloudburstmc.api.inventory.Inventory
addItem, all, canAddItem, clear, clear, clearAll, close, contains, decrementCount, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getViewers, incrementCount, isEmpty, isFull, onClose, onOpen, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setItem, setMaxStackSize
-
Field Details
-
SLOT_INGREDIENT
public static final int SLOT_INGREDIENT- See Also:
- Constant Field Values
-
SLOT_FUEL
public static final int SLOT_FUEL- See Also:
- Constant Field Values
-
-
Constructor Details
-
CloudBrewingInventory
public CloudBrewingInventory(org.cloudburstmc.api.blockentity.BrewingStand brewingStand)
-
-
Method Details
-
getHolder
public org.cloudburstmc.api.blockentity.BrewingStand getHolder()- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.BrewingInventory- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin classBaseInventory
-
getIngredient
public org.cloudburstmc.api.item.ItemStack getIngredient()- Specified by:
getIngredientin interfaceorg.cloudburstmc.api.inventory.BrewingInventory
-
setIngredient
public void setIngredient(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setIngredientin interfaceorg.cloudburstmc.api.inventory.BrewingInventory
-
setFuel
public void setFuel(org.cloudburstmc.api.item.ItemStack fuel)- Specified by:
setFuelin interfaceorg.cloudburstmc.api.inventory.BrewingInventory
-
getFuel
public org.cloudburstmc.api.item.ItemStack getFuel()- Specified by:
getFuelin interfaceorg.cloudburstmc.api.inventory.BrewingInventory
-
onSlotChange
public void onSlotChange(int index, org.cloudburstmc.api.item.ItemStack before, boolean send)- Specified by:
onSlotChangein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onSlotChangein classBaseInventory
-