Class 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
- All Implemented Interfaces:
- Clearable,- Container,- MenuConstructor,- MenuProvider,- Nameable,- RandomizableContainer,- WorldlyContainer,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- IForgeBlockEntity
public class ShulkerBoxBlockEntity
extends RandomizableContainerBlockEntity
implements WorldlyContainer
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntityBlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DyeColorstatic final intstatic final intstatic final intprivate 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 interface net.minecraft.world.ContainerDEFAULT_DISTANCE_BUFFERFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABBFields 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_) protected IItemHandlerprivate 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()protected voidloadAdditional(CompoundTag p_327918_, HolderLookup.Provider p_335601_) voidloadFromTag(CompoundTag p_59694_, HolderLookup.Provider p_333398_) private voidmoveCollidedEntities(Level p_155684_, BlockPos p_155685_, BlockState p_155686_) protected voidsaveAdditional(CompoundTag p_187513_, HolderLookup.Provider p_334063_) 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.RandomizableContainerBlockEntityapplyImplicitComponents, canOpen, collectImplicitComponents, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeedMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntitycanUnlock, clearContent, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemovedMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderdeserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods 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, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, stillValidMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitygetModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdateMethods 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:
 
- 
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
 
- 
loadAdditional- Overrides:
- loadAdditionalin class- BaseContainerBlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BaseContainerBlockEntity
 
- 
loadFromTag
- 
getItems- Specified by:
- getItemsin class- BaseContainerBlockEntity
 
- 
setItems- Specified by:
- setItemsin class- BaseContainerBlockEntity
 
- 
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()
- 
createUnSidedHandler- Overrides:
- createUnSidedHandlerin class- BaseContainerBlockEntity
 
 
-