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
public class ShulkerBoxBlockEntity extends LootableContainerBlockEntity implements SidedInventory
- Mappings:
Namespace Name official cgq
intermediary net/minecraft/class_2627
named net/minecraft/block/entity/ShulkerBoxBlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShulkerBoxBlockEntity.AnimationStage
-
Field Summary
Fields Modifier and Type Field Description private float
animationProgress
private ShulkerBoxBlockEntity.AnimationStage
animationStage
private static int[]
AVAILABLE_SLOTS
private DyeColor
cachedColor
private DefaultedList<ItemStack>
inventory
private float
prevAnimationProgress
private int
viewerCount
Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
lootTableId, lootTableSeed
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description ShulkerBoxBlockEntity(DyeColor color, BlockPos pos, BlockState state)
ShulkerBoxBlockEntity(BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description boolean
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
canInsert(int slot, ItemStack stack, Direction dir)
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)
void
deserializeInventory(CompoundTag tag)
void
fromTag(CompoundTag tag)
float
getAnimationProgress(float delta)
ShulkerBoxBlockEntity.AnimationStage
getAnimationStage()
int[]
getAvailableSlots(Direction side)
Gets the available slot positions that are reachable from a given side.Box
getBoundingBox(BlockState state)
DyeColor
getColor()
protected Text
getContainerName()
protected DefaultedList<ItemStack>
getInvStackList()
void
onClose(PlayerEntity player)
void
onOpen(PlayerEntity player)
boolean
onSyncedBlockEvent(int type, int data)
private void
pushEntities(World world, BlockPos pos, BlockState state)
CompoundTag
serializeInventory(CompoundTag tag)
protected void
setInvStackList(DefaultedList<ItemStack> list)
int
size()
boolean
suffocates()
static void
tick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity)
CompoundTag
toTag(CompoundTag tag)
private void
updateAnimation(World world, BlockPos pos, BlockState state)
private static void
updateNeighborStates(World world, BlockPos pos, BlockState state)
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, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toUpdatePacket
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, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, removeStack, removeStack, setStack
Methods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
AVAILABLE_SLOTS
private static final int[] AVAILABLE_SLOTS- Mappings:
Namespace Name Mixin selector official c
Lcgq;c:[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 g
Lcgq;g:Lgj;
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 h
Lcgq;h: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 i
Lcgq;i:Lcgq$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 j
Lcgq;j: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 k
Lcgq;k: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 l
Lcgq;l:Lbms;
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>
Lcgq;<init>(Lbms;Lfx;Lcht;)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>
Lcgq;<init>(Lfx;Lcht;)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
Lcgq;a(Lbtv;Lfx;Lcht;Lcgq;)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
Lcgq;b(Lbtv;Lfx;Lcht;)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 h
Lcgq;h()Lcgq$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
Lcgq;a(Lcht;)Ldip;
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
Lcgq;c(Lbtv;Lfx;Lcht;)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)- Overrides:
onSyncedBlockEvent
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a_
Lcfr;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
Lcgq;d(Lbtv;Lfx;Lcht;)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 c_
Lapj;c_(Lbhl;)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 b_
Lapj;b_(Lbhl;)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
Lcfl;g()Loi;
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;
-
fromTag
- Overrides:
fromTag
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTag
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
deserializeInventory
- Mappings:
Namespace Name Mixin selector official e
Lcgq;e(Lmq;)V
intermediary method_11319
Lnet/minecraft/class_2627;method_11319(Lnet/minecraft/class_2487;)V
named deserializeInventory
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;deserializeInventory(Lnet/minecraft/nbt/CompoundTag;)V
-
serializeInventory
- Mappings:
Namespace Name Mixin selector official f
Lcgq;f(Lmq;)Lmq;
intermediary method_11317
Lnet/minecraft/class_2627;method_11317(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named serializeInventory
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;serializeInventory(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getInvStackList
- Specified by:
getInvStackList
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official f
Lcgo;f()Lgj;
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
Lcgo;a(Lgj;)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
Lapz;a(Lgc;)[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
Lapz;a(ILbnv;Lgc;)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
Lapz;b(ILbnv;Lgc;)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
Lcgq;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 i
Lcgq;i()Lbms;
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
Lcfl;a(ILbhk;)Lbjr;
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 j
Lcgq;j()Z
intermediary method_27093
Lnet/minecraft/class_2627;method_27093()Z
named suffocates
Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;suffocates()Z
-