public class ShulkerBoxTileEntity extends LockableLootTileEntity implements ISidedInventory, ITickableTileEntity
修飾子とタイプ | クラスと説明 |
---|---|
static class |
ShulkerBoxTileEntity.AnimationStatus |
lootTable, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
コンストラクタと説明 |
---|
ShulkerBoxTileEntity() |
ShulkerBoxTileEntity(DyeColor colorIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
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 |
closeInventory(PlayerEntity player) |
protected Container |
createMenu(int id,
PlayerInventory player) |
protected IItemHandler |
createUnSidedHandler() |
ShulkerBoxTileEntity.AnimationStatus |
getAnimationStatus() |
AxisAlignedBB |
getBoundingBox(BlockState p_190584_1_) |
AxisAlignedBB |
getBoundingBox(Direction p_190587_1_) |
DyeColor |
getColor() |
protected ITextComponent |
getDefaultName() |
protected NonNullList<ItemStack> |
getItems() |
float |
getProgress(float p_190585_1_) |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
int[] |
getSlotsForFace(Direction side) |
void |
loadFromNbt(CompoundNBT compound) |
void |
openInventory(PlayerEntity player) |
void |
read(CompoundNBT compound) |
boolean |
receiveClientEvent(int id,
int type)
|
CompoundNBT |
saveToNbt(CompoundNBT compound) |
protected void |
setItems(NonNullList<ItemStack> itemsIn) |
void |
tick() |
protected void |
updateAnimation() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isEmpty, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTable
canUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, 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
count, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContents
clear, clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
public ShulkerBoxTileEntity(@Nullable DyeColor colorIn)
public ShulkerBoxTileEntity()
public void tick()
tick
インタフェース内 ITickableTileEntity
protected void updateAnimation()
public ShulkerBoxTileEntity.AnimationStatus getAnimationStatus()
public AxisAlignedBB getBoundingBox(BlockState p_190584_1_)
public AxisAlignedBB getBoundingBox(Direction p_190587_1_)
public int getSizeInventory()
getSizeInventory
インタフェース内 IInventory
public boolean receiveClientEvent(int id, int type)
Block.eventReceived(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int)
for more information. This must return true serverside before it is called
clientside.receiveClientEvent
クラス内 TileEntity
public void openInventory(PlayerEntity player)
openInventory
インタフェース内 IInventory
public void closeInventory(PlayerEntity player)
closeInventory
インタフェース内 IInventory
protected ITextComponent getDefaultName()
getDefaultName
クラス内 LockableTileEntity
public void read(CompoundNBT compound)
read
クラス内 LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 LockableTileEntity
public void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems
クラス内 LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
クラス内 LockableLootTileEntity
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 float getProgress(float p_190585_1_)
@Nullable public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu
クラス内 LockableTileEntity
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
クラス内 LockableTileEntity