public class BrewingStandTileEntity extends LockableTileEntity implements ISidedInventory, ITickableTileEntity
Modifier and Type | Field and Description |
---|---|
private int |
brewTime |
protected IIntArray |
dataAccess |
private int |
fuel |
(package private) LazyOptional<? extends IItemHandler>[] |
handlers |
private Item |
ingredient |
private NonNullList<ItemStack> |
items |
private boolean[] |
lastPotionCount |
private static int[] |
SLOTS_FOR_DOWN |
private static int[] |
SLOTS_FOR_SIDES |
private static int[] |
SLOTS_FOR_UP |
level, remove, worldPosition
INFINITE_EXTENT_AABB
Constructor and Description |
---|
BrewingStandTileEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlaceItem(int p_94041_1_,
ItemStack p_94041_2_) |
boolean |
canPlaceItemThroughFace(int p_180462_1_,
ItemStack p_180462_2_,
Direction p_180462_3_) |
boolean |
canTakeItemThroughFace(int p_180461_1_,
ItemStack p_180461_2_,
Direction p_180461_3_) |
void |
clearContent() |
protected Container |
createMenu(int p_213906_1_,
PlayerInventory p_213906_2_) |
private void |
doBrew() |
<T> LazyOptional<T> |
getCapability(Capability<T> capability,
Direction facing)
Retrieves the Optional handler for the capability requested on the specific side.
|
int |
getContainerSize() |
protected ITextComponent |
getDefaultName() |
ItemStack |
getItem(int p_70301_1_) |
boolean[] |
getPotionBits() |
int[] |
getSlotsForFace(Direction p_180463_1_) |
protected void |
invalidateCaps() |
private boolean |
isBrewable() |
boolean |
isEmpty() |
void |
load(BlockState p_230337_1_,
CompoundNBT p_230337_2_) |
ItemStack |
removeItem(int p_70298_1_,
int p_70298_2_) |
ItemStack |
removeItemNoUpdate(int p_70304_1_) |
CompoundNBT |
save(CompoundNBT p_189515_1_) |
void |
setItem(int p_70299_1_,
ItemStack p_70299_2_) |
boolean |
stillValid(PlayerEntity p_70300_1_) |
void |
tick() |
canOpen, canUnlock, createMenu, createUnSidedHandler, getCustomName, getDisplayName, getName, setCustomName
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countItem, getMaxStackSize, hasAnyOf, setChanged, startOpen, stopOpen
tryClear
hasCustomName
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
private static final int[] SLOTS_FOR_UP
private static final int[] SLOTS_FOR_DOWN
private static final int[] SLOTS_FOR_SIDES
private NonNullList<ItemStack> items
private int brewTime
private boolean[] lastPotionCount
private Item ingredient
private int fuel
protected final IIntArray dataAccess
LazyOptional<? extends IItemHandler>[] handlers
protected ITextComponent getDefaultName()
getDefaultName
in class LockableTileEntity
public int getContainerSize()
getContainerSize
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public void tick()
tick
in interface ITickableTileEntity
public boolean[] getPotionBits()
private boolean isBrewable()
private void doBrew()
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
load
in class LockableTileEntity
public CompoundNBT save(CompoundNBT p_189515_1_)
save
in class LockableTileEntity
public ItemStack getItem(int p_70301_1_)
getItem
in interface IInventory
public ItemStack removeItem(int p_70298_1_, int p_70298_2_)
removeItem
in interface IInventory
public ItemStack removeItemNoUpdate(int p_70304_1_)
removeItemNoUpdate
in interface IInventory
public void setItem(int p_70299_1_, ItemStack p_70299_2_)
setItem
in interface IInventory
public boolean stillValid(PlayerEntity p_70300_1_)
stillValid
in interface IInventory
public boolean canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
canPlaceItem
in interface IInventory
public int[] getSlotsForFace(Direction p_180463_1_)
getSlotsForFace
in interface ISidedInventory
public boolean canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, @Nullable Direction p_180462_3_)
canPlaceItemThroughFace
in interface ISidedInventory
public boolean canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_)
canTakeItemThroughFace
in interface ISidedInventory
public void clearContent()
clearContent
in interface IClearable
protected Container createMenu(int p_213906_1_, PlayerInventory p_213906_2_)
createMenu
in class LockableTileEntity
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
getCapability
in class LockableTileEntity
protected void invalidateCaps()
invalidateCaps
in class LockableTileEntity