net.minecraft.block.entity

public class ShulkerBoxBlockEntity

extends LootableContainerBlockEntity implements SidedInventory

All mapped superinterfaces:

DebugTrackable, EntryConvertible, Inventory, Clearable, StackReferenceGetter, NamedScreenHandlerFactory, ScreenHandlerFactory, Nameable, LootableInventory, SidedInventory

net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity
net.minecraft.class_2627
net.minecraft.block.entity.ShulkerBoxBlockEntity

Field summary

Modifier and TypeField
public static final int
COLUMNS
field_31354
field_31354
public static final int
ROWS
field_31355
field_31355
public static final int
CONTAINER_SIZE
field_31356
INVENTORY_SIZE
public static final int
EVENT_SET_OPEN_COUNT
field_31357
field_31357
public static final int
OPENING_TICK_LENGTH
field_31358
field_31358
public static final float
MAX_LID_HEIGHT
field_31359
field_31359
public static final float
MAX_LID_ROTATION
field_31360
field_31360
private static final int[]
SLOTS
field_12059
AVAILABLE_SLOTS
private static final Text
DEFAULT_NAME
field_63046
CONTAINER_NAME_TEXT
private DefaultedList<ItemStack>
itemStacks
field_12054
inventory
private int
openCount
field_12053
viewerCount
private ShulkerBoxBlockEntity$AnimationStage
animationStatus
field_12057
animationStage
private float
progress
field_12056
animationProgress
private float
progressOld
field_12055
lastAnimationProgress
private final DyeColor
color
field_12060
cachedColor

Constructor summary

ModifierConstructor
public (DyeColor color, BlockPos pos, BlockState state)
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public static void
tick(Level level, BlockPos pos, BlockState state, ShulkerBoxBlockEntity entity)
method_31694(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2627 arg3)
tick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity)
private void
updateAnimation(Level level, BlockPos pos, BlockState blockState)
method_11318(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updateAnimation(World world, BlockPos pos, BlockState state)
public ShulkerBoxBlockEntity$AnimationStage
getAnimationStatus()
method_11313()
getAnimationStage()
public Box
getBoundingBox(BlockState state)
method_11314(class_2680 arg0)
getBoundingBox(BlockState state)
private void
moveCollidedEntities(Level level, BlockPos pos, BlockState state)
method_11316(class_1937 arg0, class_2338 arg1, class_2680 arg2)
pushEntities(World world, BlockPos pos, BlockState state)
public int
getContainerSize()
method_5439()
size()
public boolean
triggerEvent(int b0, int b1)
method_11004(int arg0, int arg1)
onSyncedBlockEvent(int arg0, int arg1)
private static void
doNeighborUpdates(Level level, BlockPos pos, BlockState blockState)
method_20047(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updateNeighborStates(World world, BlockPos pos, BlockState state)
public void
preRemoveSideEffects(BlockPos pos, BlockState state)
method_66473(class_2338 arg0, class_2680 arg1)
onBlockReplaced(BlockPos arg0, BlockState arg1)
public void
startOpen(ContainerUser containerUser)
method_5435(class_11565 arg0)
onOpen(ContainerUser arg0)
public void
stopOpen(ContainerUser containerUser)
method_5432(class_11565 arg0)
onClose(ContainerUser arg0)
protected Text
getDefaultName()
method_17823()
getContainerName()
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public void
loadFromTag(ValueInput input)
method_11319(class_11368 arg0)
readInventoryNbt(ReadView arg0)
protected DefaultedList<ItemStack>
getItems()
method_11282()
getHeldStacks()
protected void
setItems(NonNullList<ItemStack> items)
method_11281(class_2371<class_1799> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
public int[]
getSlotsForFace(Direction direction)
method_5494(class_2350 arg0)
getAvailableSlots(Direction arg0)
public boolean
canPlaceItemThroughFace(int slot, ItemStack itemStack, Direction direction)
method_5492(int arg0, class_1799 arg1, class_2350 arg2)
canInsert(int arg0, ItemStack arg1, Direction arg2)
public boolean
canTakeItemThroughFace(int slot, ItemStack itemStack, Direction direction)
method_5493(int arg0, class_1799 arg1, class_2350 arg2)
canExtract(int arg0, ItemStack arg1, Direction arg2)
public float
getProgress(float a)
method_11312(float arg0)
getAnimationProgress(float tickProgress)
public DyeColor
getColor()
method_11320()
getColor()
protected ScreenHandler
createMenu(int containerId, Inventory inventory)
method_5465(int arg0, class_1661 arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
public boolean
isClosed()
method_27093()
suffocates()