Class 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
- All Implemented Interfaces:
- Clearable,- Container,- MenuConstructor,- MenuProvider,- Nameable,- RandomizableContainer,- WorldlyContainer,- IAttachmentHolder,- IMenuProviderExtension,- IBlockEntityExtension,- INBTSerializable<CompoundTag>
public class ShulkerBoxBlockEntity
extends RandomizableContainerBlockEntity
implements WorldlyContainer
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DyeColorstatic final intstatic final intstatic final intstatic final Stringprivate NonNullList<ItemStack>static final floatstatic final floatprivate intstatic final intprivate floatprivate floatstatic final intprivate static final int[]Fields inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntitylootTable, lootTableSeedFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields inherited from interface net.minecraft.world.RandomizableContainerLOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
- 
Constructor SummaryConstructorsConstructorDescriptionShulkerBoxBlockEntity(BlockPos p_155670_, BlockState p_155671_) ShulkerBoxBlockEntity(DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanPlaceItemThroughFace(int p_59663_, ItemStack p_59664_, Direction p_59665_) booleancanTakeItemThroughFace(int p_59682_, ItemStack p_59683_, Direction p_59684_) protected AbstractContainerMenucreateMenu(int p_59660_, Inventory p_59661_) private static voiddoNeighborUpdates(Level p_155688_, BlockPos p_155689_, BlockState p_155690_) getBoundingBox(BlockState p_59667_) getColor()intprotected Componentprotected NonNullList<ItemStack>getItems()floatgetProgress(float p_59658_) int[]getSlotsForFace(Direction p_59672_) booleanisClosed()voidload(CompoundTag p_155678_) voidloadFromTag(CompoundTag p_59694_) private voidmoveCollidedEntities(Level p_155684_, BlockPos p_155685_, BlockState p_155686_) protected voidsaveAdditional(CompoundTag p_187513_) protected voidsetItems(NonNullList<ItemStack> p_59674_) voidvoidstatic voidtick(Level p_155673_, BlockPos p_155674_, BlockState p_155675_, ShulkerBoxBlockEntity p_155676_) booleantriggerEvent(int p_59678_, int p_59679_) private voidupdateAnimation(Level p_155680_, BlockPos p_155681_, BlockState p_155682_) Methods inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntitycanOpen, clearContent, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeed, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntitycanUnlock, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemovedMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderareAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ClearableclearContentMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, stillValidMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtensiondeserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtensionshouldTriggerClientSideContainerClosingOnOpenMethods inherited from interface net.minecraft.world.NameablehasCustomNameMethods inherited from interface net.minecraft.world.RandomizableContainergetBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
- 
Field Details- 
COLUMNSpublic static final int COLUMNS- See Also:
 
- 
ROWSpublic static final int ROWS- See Also:
 
- 
CONTAINER_SIZEpublic static final int CONTAINER_SIZE- See Also:
 
- 
EVENT_SET_OPEN_COUNTpublic static final int EVENT_SET_OPEN_COUNT- See Also:
 
- 
OPENING_TICK_LENGTHpublic static final int OPENING_TICK_LENGTH- See Also:
 
- 
MAX_LID_HEIGHTpublic static final float MAX_LID_HEIGHT- See Also:
 
- 
MAX_LID_ROTATIONpublic static final float MAX_LID_ROTATION- See Also:
 
- 
ITEMS_TAG- See Also:
 
- 
SLOTSprivate static final int[] SLOTS
- 
itemStacks
- 
openCountprivate int openCount
- 
animationStatus
- 
progressprivate float progress
- 
progressOldprivate float progressOld
- 
color
 
- 
- 
Constructor Details- 
ShulkerBoxBlockEntitypublic ShulkerBoxBlockEntity(@Nullable DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) 
- 
ShulkerBoxBlockEntity
 
- 
- 
Method Details- 
tickpublic static void tick(Level p_155673_, BlockPos p_155674_, BlockState p_155675_, ShulkerBoxBlockEntity p_155676_) 
- 
updateAnimation
- 
getAnimationStatus
- 
getBoundingBox
- 
moveCollidedEntities
- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
triggerEventpublic boolean triggerEvent(int p_59678_, int p_59679_) - Overrides:
- triggerEventin class- BlockEntity
 
- 
doNeighborUpdates
- 
startOpen
- 
stopOpen
- 
getDefaultName- Specified by:
- getDefaultNamein class- BaseContainerBlockEntity
 
- 
load- Overrides:
- loadin class- BaseContainerBlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BaseContainerBlockEntity
 
- 
loadFromTag
- 
getItems- Specified by:
- getItemsin class- RandomizableContainerBlockEntity
 
- 
setItems- Specified by:
- setItemsin class- RandomizableContainerBlockEntity
 
- 
getSlotsForFace- Specified by:
- getSlotsForFacein interface- WorldlyContainer
 
- 
canPlaceItemThroughFacepublic boolean canPlaceItemThroughFace(int p_59663_, ItemStack p_59664_, @Nullable Direction p_59665_) - Specified by:
- canPlaceItemThroughFacein interface- WorldlyContainer
 
- 
canTakeItemThroughFace- Specified by:
- canTakeItemThroughFacein interface- WorldlyContainer
 
- 
getProgresspublic float getProgress(float p_59658_) 
- 
getColor
- 
createMenu- Specified by:
- createMenuin class- BaseContainerBlockEntity
 
- 
isClosedpublic boolean isClosed()
 
-