public class BrewingStandTileEntity extends LockableTileEntity implements ISidedInventory, ITickableTileEntity
| Modifier and Type | Field and Description |
|---|---|
private NonNullList<ItemStack> |
brewingItemStacks |
private int |
brewTime |
protected IIntArray |
field_213954_a |
private boolean[] |
filledSlots |
private int |
fuel |
(package private) LazyOptional<? extends IItemHandler>[] |
handlers |
private Item |
ingredientID |
private static int[] |
OUTPUT_SLOTS |
private static int[] |
SLOTS_FOR_DOWN |
private static int[] |
SLOTS_FOR_UP |
pos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
BrewingStandTileEntity() |
| Modifier and Type | Method and Description |
|---|---|
private void |
brewPotions() |
private boolean |
canBrew() |
boolean |
canExtractItem(int index,
ItemStack stack,
Direction direction) |
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
Direction direction) |
void |
clear() |
boolean[] |
createFilledSlotsArray() |
protected Container |
createMenu(int id,
PlayerInventory player) |
ItemStack |
decrStackSize(int index,
int count) |
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
protected ITextComponent |
getDefaultName() |
int |
getSizeInventory() |
int[] |
getSlotsForFace(Direction side) |
ItemStack |
getStackInSlot(int index) |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUsableByPlayer(PlayerEntity player) |
void |
read(CompoundNBT compound) |
void |
remove() |
ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, canUnlock, createMenu, createUnSidedHandler, getCustomName, getDisplayName, getName, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventoryclearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilityprivate static final int[] SLOTS_FOR_UP
private static final int[] SLOTS_FOR_DOWN
private static final int[] OUTPUT_SLOTS
private NonNullList<ItemStack> brewingItemStacks
private int brewTime
private boolean[] filledSlots
private Item ingredientID
private int fuel
protected final IIntArray field_213954_a
LazyOptional<? extends IItemHandler>[] handlers
protected ITextComponent getDefaultName()
getDefaultName in class LockableTileEntitypublic int getSizeInventory()
getSizeInventory in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic void tick()
tick in interface ITickableTileEntitypublic boolean[] createFilledSlotsArray()
private boolean canBrew()
private void brewPotions()
public void read(CompoundNBT compound)
read in class LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic ItemStack getStackInSlot(int index)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer in interface IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot in interface IInventorypublic int[] getSlotsForFace(Direction side)
getSlotsForFace in interface ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem in interface ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem in interface ISidedInventorypublic void clear()
clear in interface IClearableprotected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntitypublic <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability in interface ICapabilityProvidergetCapability in class LockableTileEntitypublic void remove()
remove in class LockableTileEntity