public class ChestTileEntity extends LockableLootTileEntity implements IChestLid, ITickableTileEntity
修飾子とタイプ | フィールドと説明 |
---|---|
protected float |
lidAngle
The current angle of the lid (between 0 and 1)
|
protected int |
numPlayersUsing
The number of players currently using this chest
|
protected float |
prevLidAngle
The angle of the lid last tick
|
lootTable, lootTableSeed
pos, removed, world
INFINITE_EXTENT_AABB
修飾子 | コンストラクタと説明 |
---|---|
|
ChestTileEntity() |
protected |
ChestTileEntity(TileEntityType<?> typeIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
static int |
calculatePlayersUsing(World p_213976_0_,
LockableTileEntity p_213976_1_,
int p_213976_2_,
int p_213976_3_,
int p_213976_4_) |
static int |
calculatePlayersUsingSync(World p_213977_0_,
LockableTileEntity p_213977_1_,
int p_213977_2_,
int p_213977_3_,
int p_213977_4_,
int p_213977_5_,
int p_213977_6_) |
void |
closeInventory(PlayerEntity player) |
protected Container |
createMenu(int id,
PlayerInventory player) |
<T> LazyOptional<T> |
getCapability(Capability<T> cap,
Direction side)
Retrieves the Optional handler for the capability requested on the specific side.
|
protected ITextComponent |
getDefaultName() |
protected NonNullList<ItemStack> |
getItems() |
float |
getLidAngle(float partialTicks) |
static int |
getPlayersUsing(IBlockReader reader,
BlockPos posIn) |
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
protected void |
onOpenOrClose() |
void |
openInventory(PlayerEntity player) |
void |
read(CompoundNBT compound) |
boolean |
receiveClientEvent(int id,
int type)
|
void |
remove()
invalidates a tile entity
|
protected void |
setItems(NonNullList<ItemStack> itemsIn) |
static void |
swapContents(ChestTileEntity chest,
ChestTileEntity otherChest) |
void |
tick() |
void |
updateContainingBlockInfo() |
CompoundNBT |
write(CompoundNBT compound) |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, decrStackSize, fillWithLoot, getStackInSlot, isEmpty, isUsableByPlayer, removeStackFromSlot, setInventorySlotContents, setLootTable, setLootTable
canUnlock, createUnSidedHandler, getCustomName, getDisplayName, getName, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, rotate, setPos, setWorldAndPos, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, getInventoryStackLimit, hasAny, isItemValidForSlot, markDirty
clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
protected float lidAngle
protected float prevLidAngle
protected int numPlayersUsing
protected ChestTileEntity(TileEntityType<?> typeIn)
public ChestTileEntity()
public int getSizeInventory()
getSizeInventory
インタフェース内 IInventory
protected ITextComponent getDefaultName()
getDefaultName
クラス内 LockableTileEntity
public void read(CompoundNBT compound)
read
クラス内 LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
クラス内 LockableTileEntity
public void tick()
tick
インタフェース内 ITickableTileEntity
public static int calculatePlayersUsingSync(World p_213977_0_, LockableTileEntity p_213977_1_, int p_213977_2_, int p_213977_3_, int p_213977_4_, int p_213977_5_, int p_213977_6_)
public static int calculatePlayersUsing(World p_213976_0_, LockableTileEntity p_213976_1_, int p_213976_2_, int p_213976_3_, int p_213976_4_)
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 void onOpenOrClose()
protected NonNullList<ItemStack> getItems()
getItems
クラス内 LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
クラス内 LockableLootTileEntity
public float getLidAngle(float partialTicks)
getLidAngle
インタフェース内 IChestLid
public static int getPlayersUsing(IBlockReader reader, BlockPos posIn)
public static void swapContents(ChestTileEntity chest, ChestTileEntity otherChest)
protected Container createMenu(int id, PlayerInventory player)
createMenu
クラス内 LockableTileEntity
public void updateContainingBlockInfo()
updateContainingBlockInfo
クラス内 TileEntity
public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side)
ICapabilityProvider
getCapability
インタフェース内 ICapabilityProvider
getCapability
クラス内 LockableTileEntity
public void remove()
remove
クラス内 LockableTileEntity