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, world
INFINITE_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, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeInventory, count, getInventoryStackLimit, hasAny, markDirty, openInventory
clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
private 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 LockableTileEntity
public int getSizeInventory()
getSizeInventory
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public void tick()
tick
in interface ITickableTileEntity
public boolean[] createFilledSlotsArray()
private boolean canBrew()
private void brewPotions()
public void read(CompoundNBT compound)
read
in class LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
public boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public int[] getSlotsForFace(Direction side)
getSlotsForFace
in interface ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
in interface ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
in interface ISidedInventory
public void clear()
clear
in interface IClearable
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class LockableTileEntity
public void remove()
remove
in class LockableTileEntity