public class ShulkerBoxTileEntity extends LockableLootTileEntity implements ISidedInventory, ITickableTileEntity
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ShulkerBoxTileEntity.AnimationStatus |
lootTable, lootTableSeedpos, removed, worldINFINITE_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, setLootTablecanUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, decrStackSize, getInventoryStackLimit, getStackInSlot, hasAny, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, removeStackFromSlot, setInventorySlotContentsclear, clearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilitypublic ShulkerBoxTileEntity(@Nullable
DyeColor colorIn)
public ShulkerBoxTileEntity()
public void tick()
tick インタフェース内 ITickableTileEntityprotected void updateAnimation()
public ShulkerBoxTileEntity.AnimationStatus getAnimationStatus()
public AxisAlignedBB getBoundingBox(BlockState p_190584_1_)
public AxisAlignedBB getBoundingBox(Direction p_190587_1_)
public int getSizeInventory()
getSizeInventory インタフェース内 IInventorypublic 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 クラス内 TileEntitypublic void openInventory(PlayerEntity player)
openInventory インタフェース内 IInventorypublic void closeInventory(PlayerEntity player)
closeInventory インタフェース内 IInventoryprotected ITextComponent getDefaultName()
getDefaultName クラス内 LockableTileEntitypublic void read(CompoundNBT compound)
read クラス内 LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 LockableTileEntitypublic void loadFromNbt(CompoundNBT compound)
public CompoundNBT saveToNbt(CompoundNBT compound)
protected NonNullList<ItemStack> getItems()
getItems クラス内 LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems クラス内 LockableLootTileEntitypublic 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 float getProgress(float p_190585_1_)
@Nullable public DyeColor getColor()
protected Container createMenu(int id, PlayerInventory player)
createMenu クラス内 LockableTileEntityprotected IItemHandler createUnSidedHandler()
createUnSidedHandler クラス内 LockableTileEntity