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
,WorldlyContainer
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
public class ShulkerBoxBlockEntity
extends RandomizableContainerBlockEntity
implements WorldlyContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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[]
Fields inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeed
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionShulkerBoxBlockEntity
(BlockPos p_155670_, BlockState p_155671_) ShulkerBoxBlockEntity
(DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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_) protected IItemHandler
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()
void
load
(CompoundTag p_155678_) void
loadFromTag
(CompoundTag p_59694_) private void
moveCollidedEntities
(Level p_155684_, BlockPos p_155685_, BlockState p_155686_) protected void
saveAdditional
(CompoundTag p_187513_) 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_) Methods inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, stillValid, tryLoadLootTable, trySaveLootTable, unpackLootTable
Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, setCustomName
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Clearable
clearContent
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getItem, getMaxStackSize, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, stillValid
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
Methods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
COLUMNS
public static final int COLUMNS- See Also:
-
ROWS
public static final int ROWS- See Also:
-
CONTAINER_SIZE
public static final int CONTAINER_SIZE- See Also:
-
EVENT_SET_OPEN_COUNT
public static final int EVENT_SET_OPEN_COUNT- See Also:
-
OPENING_TICK_LENGTH
public static final int OPENING_TICK_LENGTH- See Also:
-
MAX_LID_HEIGHT
public static final float MAX_LID_HEIGHT- See Also:
-
MAX_LID_ROTATION
public static final float MAX_LID_ROTATION- See Also:
-
ITEMS_TAG
- See Also:
-
SLOTS
private static final int[] SLOTS -
itemStacks
-
openCount
private int openCount -
animationStatus
-
progress
private float progress -
progressOld
private float progressOld -
color
-
-
Constructor Details
-
ShulkerBoxBlockEntity
public ShulkerBoxBlockEntity(@Nullable DyeColor p_155666_, BlockPos p_155667_, BlockState p_155668_) -
ShulkerBoxBlockEntity
-
-
Method Details
-
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()- Specified by:
getContainerSize
in interfaceContainer
-
triggerEvent
public boolean triggerEvent(int p_59678_, int p_59679_) - Overrides:
triggerEvent
in classBlockEntity
-
doNeighborUpdates
-
startOpen
-
stopOpen
-
getDefaultName
- Specified by:
getDefaultName
in classBaseContainerBlockEntity
-
load
- Overrides:
load
in classBaseContainerBlockEntity
-
saveAdditional
- Overrides:
saveAdditional
in classBaseContainerBlockEntity
-
loadFromTag
-
getItems
- Specified by:
getItems
in classRandomizableContainerBlockEntity
-
setItems
- Specified by:
setItems
in classRandomizableContainerBlockEntity
-
getSlotsForFace
- Specified by:
getSlotsForFace
in interfaceWorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int p_59663_, ItemStack p_59664_, @Nullable Direction p_59665_) - Specified by:
canPlaceItemThroughFace
in interfaceWorldlyContainer
-
canTakeItemThroughFace
- Specified by:
canTakeItemThroughFace
in interfaceWorldlyContainer
-
getProgress
public float getProgress(float p_59658_) -
getColor
-
createMenu
- Specified by:
createMenu
in classBaseContainerBlockEntity
-
isClosed
public boolean isClosed() -
createUnSidedHandler
- Overrides:
createUnSidedHandler
in classBaseContainerBlockEntity
-