Package net.minecraft.block.entity
Class ShulkerBoxBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.block.entity.LootableContainerBlockEntity
net.minecraft.block.entity.ShulkerBoxBlockEntity
- All Implemented Interfaces:
Inventory
,SidedInventory
,NamedScreenHandlerFactory
,ScreenHandlerFactory
,Clearable
,Nameable
- Mappings:
Namespace Name official dam
intermediary net/minecraft/class_2627
named net/minecraft/block/entity/ShulkerBoxBlockEntity
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private static final int[]
static final int
static final int
static final int
static final int
static final float
static final float
private DefaultedList<ItemStack>
static final int
static final String
private float
private int
Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeed
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
Fields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK
-
Constructor Summary
ConstructorDescriptionShulkerBoxBlockEntity
(@Nullable DyeColor color, BlockPos pos, BlockState state) ShulkerBoxBlockEntity
(BlockPos pos, BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExtract
(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.protected ScreenHandler
createScreenHandler
(int syncId, PlayerInventory playerInventory) float
getAnimationProgress
(float delta) int[]
getAvailableSlots
(Direction side) Gets the available slot positions that are reachable from a given side.getBoundingBox
(BlockState state) getColor()
protected Text
protected DefaultedList<ItemStack>
void
onClose
(PlayerEntity player) void
onOpen
(PlayerEntity player) boolean
onSyncedBlockEvent
(int type, int data) If this block entity's block extendsBlockWithEntity
, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int)
.private void
pushEntities
(World world, BlockPos pos, BlockState state) void
void
readNbt
(NbtCompound nbt) Reads data fromnbt
.protected void
int
size()
boolean
static void
tick
(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity) private void
updateAnimation
(World world, BlockPos pos, BlockState state) private static void
updateNeighborStates
(World world, BlockPos pos, BlockState state) protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
canPlayerUse, checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, getStack, isEmpty, removeStack, removeStack, serializeLootTable, setLootTable, setLootTable, setStack
Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomName
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, removeStack, removeStack, setStack
Methods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
field_31354
public static final int field_31354- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldam;c:I
intermediary field_31354
Lnet/minecraft/class_2627;field_31354:I
named field_31354
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31354:I
-
field_31355
public static final int field_31355- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldam;f:I
intermediary field_31355
Lnet/minecraft/class_2627;field_31355:I
named field_31355
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31355:I
-
INVENTORY_SIZE
public static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldam;g:I
intermediary field_31356
Lnet/minecraft/class_2627;field_31356:I
named INVENTORY_SIZE
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;INVENTORY_SIZE:I
-
field_31357
public static final int field_31357- See Also:
- Mappings:
Namespace Name Mixin selector official j
Ldam;j:I
intermediary field_31357
Lnet/minecraft/class_2627;field_31357:I
named field_31357
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31357:I
-
field_31358
public static final int field_31358- See Also:
- Mappings:
Namespace Name Mixin selector official k
Ldam;k:I
intermediary field_31358
Lnet/minecraft/class_2627;field_31358:I
named field_31358
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31358:I
-
field_31359
public static final float field_31359- See Also:
- Mappings:
Namespace Name Mixin selector official l
Ldam;l:F
intermediary field_31359
Lnet/minecraft/class_2627;field_31359:F
named field_31359
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31359:F
-
field_31360
public static final float field_31360- See Also:
- Mappings:
Namespace Name Mixin selector official m
Ldam;m:F
intermediary field_31360
Lnet/minecraft/class_2627;field_31360:F
named field_31360
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31360:F
-
ITEMS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official n
Ldam;n:Ljava/lang/String;
intermediary field_31361
Lnet/minecraft/class_2627;field_31361:Ljava/lang/String;
named ITEMS_KEY
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;ITEMS_KEY:Ljava/lang/String;
-
AVAILABLE_SLOTS
private static final int[] AVAILABLE_SLOTS- Mappings:
Namespace Name Mixin selector official r
Ldam;r:[I
intermediary field_12059
Lnet/minecraft/class_2627;field_12059:[I
named AVAILABLE_SLOTS
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;AVAILABLE_SLOTS:[I
-
inventory
- Mappings:
Namespace Name Mixin selector official s
Ldam;s:Lhn;
intermediary field_12054
Lnet/minecraft/class_2627;field_12054:Lnet/minecraft/class_2371;
named inventory
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
viewerCount
private int viewerCount- Mappings:
Namespace Name Mixin selector official t
Ldam;t:I
intermediary field_12053
Lnet/minecraft/class_2627;field_12053:I
named viewerCount
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;viewerCount:I
-
animationStage
- Mappings:
Namespace Name Mixin selector official u
Ldam;u:Ldam$a;
intermediary field_12057
Lnet/minecraft/class_2627;field_12057:Lnet/minecraft/class_2627$class_2628;
named animationStage
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;animationStage:Lnet/minecraft/block/entity/ShulkerBoxBlockEntity$AnimationStage;
-
animationProgress
private float animationProgress- Mappings:
Namespace Name Mixin selector official v
Ldam;v:F
intermediary field_12056
Lnet/minecraft/class_2627;field_12056:F
named animationProgress
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;animationProgress:F
-
prevAnimationProgress
private float prevAnimationProgress- Mappings:
Namespace Name Mixin selector official w
Ldam;w:F
intermediary field_12055
Lnet/minecraft/class_2627;field_12055:F
named prevAnimationProgress
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;prevAnimationProgress:F
-
cachedColor
- Mappings:
Namespace Name Mixin selector official x
Ldam;x:Lceg;
intermediary field_12060
Lnet/minecraft/class_2627;field_12060:Lnet/minecraft/class_1767;
named cachedColor
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;cachedColor:Lnet/minecraft/util/DyeColor;
-
-
Constructor Details
-
ShulkerBoxBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Ldam;<init>(Lceg;Lgu;Ldbt;)V
intermediary <init>
Lnet/minecraft/class_2627;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
ShulkerBoxBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Ldam;<init>(Lgu;Ldbt;)V
intermediary <init>
Lnet/minecraft/class_2627;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
tick
public static void tick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official a
Ldam;a(Lcmf;Lgu;Ldbt;Ldam;)V
intermediary method_31694
Lnet/minecraft/class_2627;method_31694(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2627;)V
named tick
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;)V
-
updateAnimation
- Mappings:
Namespace Name Mixin selector official b
Ldam;b(Lcmf;Lgu;Ldbt;)V
intermediary method_11318
Lnet/minecraft/class_2627;method_11318(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named updateAnimation
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;updateAnimation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getAnimationStage
- Mappings:
Namespace Name Mixin selector official i
Ldam;i()Ldam$a;
intermediary method_11313
Lnet/minecraft/class_2627;method_11313()Lnet/minecraft/class_2627$class_2628;
named getAnimationStage
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;getAnimationStage()Lnet/minecraft/block/entity/ShulkerBoxBlockEntity$AnimationStage;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official a
Ldam;a(Ldbt;)Ledp;
intermediary method_11314
Lnet/minecraft/class_2627;method_11314(Lnet/minecraft/class_2680;)Lnet/minecraft/class_238;
named getBoundingBox
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;getBoundingBox(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
pushEntities
- Mappings:
Namespace Name Mixin selector official c
Ldam;c(Lcmf;Lgu;Ldbt;)V
intermediary method_11316
Lnet/minecraft/class_2627;method_11316(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named pushEntities
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;pushEntities(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
size
public int size() -
onSyncedBlockEvent
public boolean onSyncedBlockEvent(int type, int data) If this block entity's block extendsBlockWithEntity
, this is called insideAbstractBlock.onSyncedBlockEvent(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int)
.- Overrides:
onSyncedBlockEvent
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a_
Lczf;a_(II)Z
intermediary method_11004
Lnet/minecraft/class_2586;method_11004(II)Z
named onSyncedBlockEvent
Lnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
updateNeighborStates
- Mappings:
Namespace Name Mixin selector official d
Ldam;d(Lcmf;Lgu;Ldbt;)V
intermediary method_20047
Lnet/minecraft/class_2627;method_20047(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named updateNeighborStates
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;updateNeighborStates(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onOpen
- Specified by:
onOpen
in interfaceInventory
- Mappings:
Namespace Name Mixin selector official d_
Lbdn;d_(Lbyi;)V
intermediary method_5435
Lnet/minecraft/class_1263;method_5435(Lnet/minecraft/class_1657;)V
named onOpen
Lnet/minecraft/inventory/Inventory;onOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onClose
- Specified by:
onClose
in interfaceInventory
- Mappings:
Namespace Name Mixin selector official c
Lbdn;c(Lbyi;)V
intermediary method_5432
Lnet/minecraft/class_1263;method_5432(Lnet/minecraft/class_1657;)V
named onClose
Lnet/minecraft/inventory/Inventory;onClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getContainerName
- Specified by:
getContainerName
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official g
Lcyz;g()Lsw;
intermediary method_17823
Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;
named getContainerName
Lnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
readNbt
Reads data fromnbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lczf;a(Lqr;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
Writes data tonbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lczf;b(Lqr;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readInventoryNbt
- Mappings:
Namespace Name Mixin selector official f
Ldam;f(Lqr;)V
intermediary method_11319
Lnet/minecraft/class_2627;method_11319(Lnet/minecraft/class_2487;)V
named readInventoryNbt
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;readInventoryNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getInvStackList
- Specified by:
getInvStackList
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official f
Ldai;f()Lhn;
intermediary method_11282
Lnet/minecraft/class_2621;method_11282()Lnet/minecraft/class_2371;
named getInvStackList
Lnet/minecraft/block/entity/LootableContainerBlockEntity;getInvStackList()Lnet/minecraft/util/collection/DefaultedList;
-
setInvStackList
- Specified by:
setInvStackList
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Ldai;a(Lhn;)V
intermediary method_11281
Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)V
named setInvStackList
Lnet/minecraft/block/entity/LootableContainerBlockEntity;setInvStackList(Lnet/minecraft/util/collection/DefaultedList;)V
-
getAvailableSlots
Gets the available slot positions that are reachable from a given side.- Specified by:
getAvailableSlots
in interfaceSidedInventory
- Mappings:
Namespace Name Mixin selector official a
Lbeb;a(Lha;)[I
intermediary method_5494
Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
named getAvailableSlots
Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
-
canInsert
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
canInsert
in interfaceSidedInventory
- Mappings:
Namespace Name Mixin selector official a
Lbeb;a(ILcfs;Lha;)Z
intermediary method_5492
Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
named canInsert
Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
canExtract
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
canExtract
in interfaceSidedInventory
- Mappings:
Namespace Name Mixin selector official b
Lbeb;b(ILcfs;Lha;)Z
intermediary method_5493
Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
named canExtract
Lnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
getAnimationProgress
public float getAnimationProgress(float delta) - Mappings:
Namespace Name Mixin selector official a
Ldam;a(F)F
intermediary method_11312
Lnet/minecraft/class_2627;method_11312(F)F
named getAnimationProgress
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;getAnimationProgress(F)F
-
getColor
- Mappings:
Namespace Name Mixin selector official j
Ldam;j()Lceg;
intermediary method_11320
Lnet/minecraft/class_2627;method_11320()Lnet/minecraft/class_1767;
named getColor
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;getColor()Lnet/minecraft/util/DyeColor;
-
createScreenHandler
- Specified by:
createScreenHandler
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcyz;a(ILbyh;)Lcaz;
intermediary method_5465
Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
named createScreenHandler
Lnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
suffocates
public boolean suffocates()- Mappings:
Namespace Name Mixin selector official v
Ldam;v()Z
intermediary method_27093
Lnet/minecraft/class_2627;method_27093()Z
named suffocates
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;suffocates()Z
-