public class BrewingStandTileEntity extends LockableTileEntity implements ISidedInventory, ITickableTileEntity
修飾子とタイプ | フィールドと説明 |
---|---|
protected IIntArray |
field_213954_a |
pos, removed, world
INFINITE_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, 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
protected final IIntArray field_213954_a
protected ITextComponent getDefaultName()
getDefaultName
クラス内 LockableTileEntity
public int getSizeInventory()
getSizeInventory
インタフェース内 IInventory
public boolean isEmpty()
isEmpty
インタフェース内 IInventory
public void tick()
tick
インタフェース内 ITickableTileEntity
public boolean[] createFilledSlotsArray()
public void read(CompoundNBT compound)
read
クラス内 LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 LockableTileEntity
public ItemStack getStackInSlot(int index)
getStackInSlot
インタフェース内 IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
インタフェース内 IInventory
public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
インタフェース内 IInventory
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
インタフェース内 IInventory
public boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer
インタフェース内 IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
インタフェース内 IInventory
public int[] getSlotsForFace(Direction side)
getSlotsForFace
インタフェース内 ISidedInventory
public boolean canInsertItem(int index, ItemStack itemStackIn, @Nullable Direction direction)
canInsertItem
インタフェース内 ISidedInventory
public boolean canExtractItem(int index, ItemStack stack, Direction direction)
canExtractItem
インタフェース内 ISidedInventory
public void clear()
clear
インタフェース内 IClearable
protected Container createMenu(int id, PlayerInventory player)
createMenu
クラス内 LockableTileEntity
public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing)
ICapabilityProvider
getCapability
インタフェース内 ICapabilityProvider
getCapability
クラス内 LockableTileEntity
public void remove()
remove
クラス内 LockableTileEntity