类 ShulkerBoxBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
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
- 所有已实现的接口:
Iterable<ItemStack>
,Clearable
,Container
,MenuConstructor
,MenuProvider
,Nameable
,RandomizableContainer
,WorldlyContainer
,IAttachmentHolder
,IBlockEntityExtension
,IMenuProviderExtension
public class ShulkerBoxBlockEntity
extends RandomizableContainerBlockEntity
implements WorldlyContainer
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.Container
Container.ContainerIterator
-
字段概要
字段修饰符和类型字段说明private final DyeColor
static final int
static final int
static final int
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
lootTable, lootTableSeed
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
从接口继承的字段 net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
-
构造器概要
构造器构造器说明ShulkerBoxBlockEntity
(BlockPos p_155670_, BlockState p_155671_) ShulkerBoxBlockEntity
(DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) -
方法概要
修饰符和类型方法说明boolean
canPlaceItemThroughFace
(int p_59663_, ItemStack p_59664_, Direction p_59665_) boolean
canTakeItemThroughFace
(int p_59682_, ItemStack p_59683_, Direction p_59684_) protected AbstractContainerMenu
createMenu
(int p_59660_, Inventory p_59661_) private static void
doNeighborUpdates
(Level p_155688_, BlockPos p_155689_, BlockState p_155690_) getBoundingBox
(BlockState p_59667_) getColor()
int
protected Component
protected NonNullList
<ItemStack> getItems()
float
getProgress
(float p_59658_) int[]
getSlotsForFace
(Direction p_59672_) boolean
isClosed()
protected void
loadAdditional
(ValueInput p_422489_) void
loadFromTag
(ValueInput p_421881_) private void
moveCollidedEntities
(Level p_155684_, BlockPos p_155685_, BlockState p_155686_) void
preRemoveSideEffects
(BlockPos p_397016_, BlockState p_397217_) protected void
saveAdditional
(ValueOutput p_422337_) protected void
setItems
(NonNullList<ItemStack> p_59674_) void
void
static void
tick
(Level p_155673_, BlockPos p_155674_, BlockState p_155675_, ShulkerBoxBlockEntity p_155676_) boolean
triggerEvent
(int p_59678_, int p_59679_) private void
updateAnimation
(Level p_155680_, BlockPos p_155681_, BlockState p_155682_) 从类继承的方法 net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
applyImplicitComponents, canOpen, collectImplicitComponents, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeed
从类继承的方法 net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, clearContent, getCustomName, getDisplayName, getName, stillValid
从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, problemPath, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 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, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, iterator, removeItem, removeItemNoUpdate, setChanged, setItem, stillValid
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
从接口继承的方法 net.neoforged.neoforge.common.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
从接口继承的方法 java.lang.Iterable
forEach, spliterator
从接口继承的方法 net.minecraft.world.Nameable
hasCustomName
从接口继承的方法 net.minecraft.world.RandomizableContainer
getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
-
字段详细资料
-
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- 另请参阅:
-
SLOTS
private static final int[] SLOTS -
itemStacks
-
openCount
private int openCount -
animationStatus
-
progress
private float progress -
progressOld
private float progressOld -
color
-
-
构造器详细资料
-
ShulkerBoxBlockEntity
public ShulkerBoxBlockEntity(@Nullable DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) -
ShulkerBoxBlockEntity
-
-
方法详细资料
-
tick
public static void tick(Level p_155673_, BlockPos p_155674_, BlockState p_155675_, ShulkerBoxBlockEntity p_155676_) -
updateAnimation
-
getAnimationStatus
-
getBoundingBox
-
moveCollidedEntities
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
triggerEvent
public boolean triggerEvent(int p_59678_, int p_59679_) - 覆盖:
triggerEvent
在类中BlockEntity
-
doNeighborUpdates
-
preRemoveSideEffects
- 覆盖:
preRemoveSideEffects
在类中BlockEntity
-
startOpen
-
stopOpen
-
getDefaultName
- 指定者:
getDefaultName
在类中BaseContainerBlockEntity
-
loadAdditional
-
saveAdditional
-
loadFromTag
-
getItems
- 指定者:
getItems
在类中BaseContainerBlockEntity
-
setItems
- 指定者:
setItems
在类中BaseContainerBlockEntity
-
getSlotsForFace
- 指定者:
getSlotsForFace
在接口中WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_59663_, ItemStack p_59664_, @Nullable Direction p_59665_) - 指定者:
canPlaceItemThroughFace
在接口中WorldlyContainer
-
canTakeItemThroughFace
- 指定者:
canTakeItemThroughFace
在接口中WorldlyContainer
-
getProgress
public float getProgress(float p_59658_) -
getColor
-
createMenu
- 指定者:
createMenu
在类中BaseContainerBlockEntity
-
isClosed
public boolean isClosed()
-