类 ShulkerBoxBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity
- 所有已实现的接口:
Clearable
,Container
,MenuConstructor
,MenuProvider
,Nameable
,WorldlyContainer
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
public class ShulkerBoxBlockEntity
extends RandomizableContainerBlockEntity
implements WorldlyContainer
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private final DyeColor
static final int
static final int
static final int
static final String
private NonNullList<ItemStack>
static final float
static final float
private int
static final int
private float
private float
static final int
private static final int[]
从类继承的字段 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeed
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器构造器说明ShulkerBoxBlockEntity
(BlockPos pPos, BlockState pBlockState) ShulkerBoxBlockEntity
(DyeColor pColor, BlockPos pPos, BlockState pBlockState) -
方法概要
修饰符和类型方法说明boolean
canPlaceItemThroughFace
(int pIndex, ItemStack pItemStack, Direction pDirection) boolean
canTakeItemThroughFace
(int pIndex, ItemStack pStack, Direction pDirection) protected AbstractContainerMenu
createMenu
(int pId, Inventory pPlayer) protected IItemHandler
private static void
doNeighborUpdates
(Level pLevel, BlockPos pPos, BlockState pState) getBoundingBox
(BlockState pState) getColor()
int
protected Component
protected NonNullList<ItemStack>
getItems()
float
getProgress
(float pPartialTicks) int[]
getSlotsForFace
(Direction pSide) boolean
isClosed()
void
load
(CompoundTag pTag) void
loadFromTag
(CompoundTag pTag) private void
moveCollidedEntities
(Level pLevel, BlockPos pPos, BlockState pState) protected void
saveAdditional
(CompoundTag pTag) protected void
setItems
(NonNullList<ItemStack> pItems) void
void
static void
tick
(Level pLevel, BlockPos pPos, BlockState pState, ShulkerBoxBlockEntity pBlockEntity) boolean
triggerEvent
(int pId, int pType) private void
updateAnimation
(Level pLevel, BlockPos pPos, BlockState pState) 从类继承的方法 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, stillValid, tryLoadLootTable, trySaveLootTable, unpackLootTable
从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, setCustomName
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Clearable
clearContent
从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, stillValid
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
-
字段详细资料
-
COLUMNS
public static final int COLUMNS- 另请参阅:
-
ROWS
public static final int ROWS- 另请参阅:
-
CONTAINER_SIZE
public static final int CONTAINER_SIZE- 另请参阅:
-
EVENT_SET_OPEN_COUNT
public static final int EVENT_SET_OPEN_COUNT- 另请参阅:
-
OPENING_TICK_LENGTH
public static final int OPENING_TICK_LENGTH- 另请参阅:
-
MAX_LID_HEIGHT
public static final float MAX_LID_HEIGHT- 另请参阅:
-
MAX_LID_ROTATION
public static final float MAX_LID_ROTATION- 另请参阅:
-
ITEMS_TAG
- 另请参阅:
-
SLOTS
private static final int[] SLOTS -
itemStacks
-
openCount
private int openCount -
animationStatus
-
progress
private float progress -
progressOld
private float progressOld -
color
-
-
构造器详细资料
-
ShulkerBoxBlockEntity
-
ShulkerBoxBlockEntity
-
-
方法详细资料
-
tick
public static void tick(Level pLevel, BlockPos pPos, BlockState pState, ShulkerBoxBlockEntity pBlockEntity) -
updateAnimation
-
getAnimationStatus
-
getBoundingBox
-
moveCollidedEntities
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
triggerEvent
public boolean triggerEvent(int pId, int pType) - 覆盖:
triggerEvent
在类中BlockEntity
-
doNeighborUpdates
-
startOpen
-
stopOpen
-
getDefaultName
- 指定者:
getDefaultName
在类中BaseContainerBlockEntity
-
load
- 覆盖:
load
在类中BaseContainerBlockEntity
-
saveAdditional
-
loadFromTag
-
getItems
- 指定者:
getItems
在类中RandomizableContainerBlockEntity
-
setItems
- 指定者:
setItems
在类中RandomizableContainerBlockEntity
-
getSlotsForFace
- 指定者:
getSlotsForFace
在接口中WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int pIndex, ItemStack pItemStack, @Nullable Direction pDirection) - 指定者:
canPlaceItemThroughFace
在接口中WorldlyContainer
-
canTakeItemThroughFace
- 指定者:
canTakeItemThroughFace
在接口中WorldlyContainer
-
getProgress
public float getProgress(float pPartialTicks) -
getColor
-
createMenu
- 指定者:
createMenu
在类中BaseContainerBlockEntity
-
isClosed
public boolean isClosed() -
createUnSidedHandler
-