public class BrewingStandTileEntity extends LockableTileEntity implements ISidedInventory, ITickableTileEntity
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected IIntArray |
field_213954_a |
pos, removed, worldINFINITE_EXTENT_AABB| コンストラクタと説明 |
|---|
BrewingStandTileEntity() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canExtractItem(int index,
ItemStack stack,
Direction direction)
Returns true if automation can extract the given item in the given slot from the given side.
|
boolean |
canInsertItem(int index,
ItemStack itemStackIn,
Direction direction)
Returns true if automation can insert the given item in the given slot from the given side.
|
void |
clear() |
boolean[] |
createFilledSlotsArray()
Creates an array of boolean values, each value represents a potion input slot, value is true if the slot is not
null.
|
protected Container |
createMenu(int id,
PlayerInventory player) |
ItemStack |
decrStackSize(int index,
int count)
Removes up to a specified number of items from an inventory slot and returns them in a new stack.
|
<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()
Returns the number of slots in the inventory.
|
int[] |
getSlotsForFace(Direction side) |
ItemStack |
getStackInSlot(int index)
Returns the stack in the given slot.
|
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int index,
ItemStack stack)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isUsableByPlayer(PlayerEntity player)
Don't rename this method to canInteractWith due to conflicts with Container
|
void |
read(CompoundNBT compound) |
void |
remove()
invalidates a tile entity
|
ItemStack |
removeStackFromSlot(int index)
Removes a stack from the given slot and returns it.
|
void |
setInventorySlotContents(int index,
ItemStack stack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
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, serializeNBTgetCapabilityprotected final IIntArray field_213954_a
protected ITextComponent getDefaultName()
getDefaultName クラス内 LockableTileEntitypublic int getSizeInventory()
getSizeInventory インタフェース内 IInventorypublic boolean isEmpty()
isEmpty インタフェース内 IInventorypublic void tick()
tick インタフェース内 ITickableTileEntitypublic boolean[] createFilledSlotsArray()
public void read(CompoundNBT compound)
read クラス内 LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 LockableTileEntitypublic ItemStack getStackInSlot(int index)
getStackInSlot インタフェース内 IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize インタフェース内 IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot インタフェース内 IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents インタフェース内 IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer インタフェース内 IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot インタフェース内 IInventorypublic int[] getSlotsForFace(Direction side)
getSlotsForFace インタフェース内 ISidedInventorypublic boolean canInsertItem(int index,
ItemStack itemStackIn,
@Nullable
Direction direction)
canInsertItem インタフェース内 ISidedInventorypublic boolean canExtractItem(int index,
ItemStack stack,
Direction direction)
canExtractItem インタフェース内 ISidedInventorypublic void clear()
clear インタフェース内 IClearableprotected Container createMenu(int id, PlayerInventory player)
createMenu クラス内 LockableTileEntitypublic <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvidergetCapability インタフェース内 ICapabilityProvidergetCapability クラス内 LockableTileEntitypublic void remove()
remove クラス内 LockableTileEntity