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 cgqintermediary net/minecraft/class_2627named net/minecraft/block/entity/ShulkerBoxBlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShulkerBoxBlockEntity.AnimationStage -
Field Summary
Fields Modifier and Type Field Description private floatanimationProgressprivate ShulkerBoxBlockEntity.AnimationStageanimationStageprivate static int[]AVAILABLE_SLOTSprivate DyeColorcachedColorprivate DefaultedList<ItemStack>inventoryprivate floatprevAnimationProgressprivate intviewerCountFields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
lootTableId, lootTableSeedFields 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 booleancanExtract(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.booleancanInsert(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 ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory)voiddeserializeInventory(CompoundTag tag)voidfromTag(CompoundTag tag)floatgetAnimationProgress(float delta)ShulkerBoxBlockEntity.AnimationStagegetAnimationStage()int[]getAvailableSlots(Direction side)Gets the available slot positions that are reachable from a given side.BoxgetBoundingBox(BlockState state)DyeColorgetColor()protected TextgetContainerName()protected DefaultedList<ItemStack>getInvStackList()voidonClose(PlayerEntity player)voidonOpen(PlayerEntity player)booleanonSyncedBlockEvent(int type, int data)private voidpushEntities(World world, BlockPos pos, BlockState state)CompoundTagserializeInventory(CompoundTag tag)protected voidsetInvStackList(DefaultedList<ItemStack> list)intsize()booleansuffocates()static voidtick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity)CompoundTagtoTag(CompoundTag tag)private voidupdateAnimation(World world, BlockPos pos, BlockState state)private static voidupdateNeighborStates(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, setStackMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomNameMethods 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, toUpdatePacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, removeStack, removeStack, setStackMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
AVAILABLE_SLOTS
private static final int[] AVAILABLE_SLOTS- Mappings:
Namespace Name Mixin selector official cLcgq;c:[Iintermediary field_12059Lnet/minecraft/class_2627;field_12059:[Inamed AVAILABLE_SLOTSLnet/minecraft/block/entity/ShulkerBoxBlockEntity;AVAILABLE_SLOTS:[I
-
inventory
- Mappings:
Namespace Name Mixin selector official gLcgq;g:Lgj;intermediary field_12054Lnet/minecraft/class_2627;field_12054:Lnet/minecraft/class_2371;named inventoryLnet/minecraft/block/entity/ShulkerBoxBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
viewerCount
private int viewerCount- Mappings:
Namespace Name Mixin selector official hLcgq;h:Iintermediary field_12053Lnet/minecraft/class_2627;field_12053:Inamed viewerCountLnet/minecraft/block/entity/ShulkerBoxBlockEntity;viewerCount:I
-
animationStage
- Mappings:
Namespace Name Mixin selector official iLcgq;i:Lcgq$a;intermediary field_12057Lnet/minecraft/class_2627;field_12057:Lnet/minecraft/class_2627$class_2628;named animationStageLnet/minecraft/block/entity/ShulkerBoxBlockEntity;animationStage:Lnet/minecraft/block/entity/ShulkerBoxBlockEntity$AnimationStage;
-
animationProgress
private float animationProgress- Mappings:
Namespace Name Mixin selector official jLcgq;j:Fintermediary field_12056Lnet/minecraft/class_2627;field_12056:Fnamed animationProgressLnet/minecraft/block/entity/ShulkerBoxBlockEntity;animationProgress:F
-
prevAnimationProgress
private float prevAnimationProgress- Mappings:
Namespace Name Mixin selector official kLcgq;k:Fintermediary field_12055Lnet/minecraft/class_2627;field_12055:Fnamed prevAnimationProgressLnet/minecraft/block/entity/ShulkerBoxBlockEntity;prevAnimationProgress:F
-
cachedColor
- Mappings:
Namespace Name Mixin selector official lLcgq;l:Lbms;intermediary field_12060Lnet/minecraft/class_2627;field_12060:Lnet/minecraft/class_1767;named cachedColorLnet/minecraft/block/entity/ShulkerBoxBlockEntity;cachedColor:Lnet/minecraft/util/DyeColor;
-
-
Constructor Details
-
ShulkerBoxBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcgq;<init>(Lbms;Lfx;Lcht;)Vintermediary <init>Lnet/minecraft/class_2627;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_2627;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <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 aLcgq;a(Lbtv;Lfx;Lcht;Lcgq;)Vintermediary method_31694Lnet/minecraft/class_2627;method_31694(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2627;)Vnamed tickLnet/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 bLcgq;b(Lbtv;Lfx;Lcht;)Vintermediary method_11318Lnet/minecraft/class_2627;method_11318(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed updateAnimationLnet/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 hLcgq;h()Lcgq$a;intermediary method_11313Lnet/minecraft/class_2627;method_11313()Lnet/minecraft/class_2627$class_2628;named getAnimationStageLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getAnimationStage()Lnet/minecraft/block/entity/ShulkerBoxBlockEntity$AnimationStage;
-
getBoundingBox
- Mappings:
Namespace Name Mixin selector official aLcgq;a(Lcht;)Ldip;intermediary method_11314Lnet/minecraft/class_2627;method_11314(Lnet/minecraft/class_2680;)Lnet/minecraft/class_238;named getBoundingBoxLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getBoundingBox(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
pushEntities
- Mappings:
Namespace Name Mixin selector official cLcgq;c(Lbtv;Lfx;Lcht;)Vintermediary method_11316Lnet/minecraft/class_2627;method_11316(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed pushEntitiesLnet/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:
onSyncedBlockEventin classBlockEntity- Mappings:
Namespace Name Mixin selector official a_Lcfr;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
updateNeighborStates
- Mappings:
Namespace Name Mixin selector official dLcgq;d(Lbtv;Lfx;Lcht;)Vintermediary method_20047Lnet/minecraft/class_2627;method_20047(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed updateNeighborStatesLnet/minecraft/block/entity/ShulkerBoxBlockEntity;updateNeighborStates(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onOpen
- Specified by:
onOpenin interfaceInventory- Mappings:
Namespace Name Mixin selector official c_Lapj;c_(Lbhl;)Vintermediary method_5435Lnet/minecraft/class_1263;method_5435(Lnet/minecraft/class_1657;)Vnamed onOpenLnet/minecraft/inventory/Inventory;onOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onClose
- Specified by:
onClosein interfaceInventory- Mappings:
Namespace Name Mixin selector official b_Lapj;b_(Lbhl;)Vintermediary method_5432Lnet/minecraft/class_1263;method_5432(Lnet/minecraft/class_1657;)Vnamed onCloseLnet/minecraft/inventory/Inventory;onClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLcfl;g()Loi;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
fromTag
- Overrides:
fromTagin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcfr;a(Lmq;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed fromTagLnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTagin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLcfr;b(Lmq;)Lmq;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named toTagLnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
deserializeInventory
- Mappings:
Namespace Name Mixin selector official eLcgq;e(Lmq;)Vintermediary method_11319Lnet/minecraft/class_2627;method_11319(Lnet/minecraft/class_2487;)Vnamed deserializeInventoryLnet/minecraft/block/entity/ShulkerBoxBlockEntity;deserializeInventory(Lnet/minecraft/nbt/CompoundTag;)V
-
serializeInventory
- Mappings:
Namespace Name Mixin selector official fLcgq;f(Lmq;)Lmq;intermediary method_11317Lnet/minecraft/class_2627;method_11317(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named serializeInventoryLnet/minecraft/block/entity/ShulkerBoxBlockEntity;serializeInventory(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getInvStackList
- Specified by:
getInvStackListin classLootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official fLcgo;f()Lgj;intermediary method_11282Lnet/minecraft/class_2621;method_11282()Lnet/minecraft/class_2371;named getInvStackListLnet/minecraft/block/entity/LootableContainerBlockEntity;getInvStackList()Lnet/minecraft/util/collection/DefaultedList;
-
setInvStackList
- Specified by:
setInvStackListin classLootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcgo;a(Lgj;)Vintermediary method_11281Lnet/minecraft/class_2621;method_11281(Lnet/minecraft/class_2371;)Vnamed setInvStackListLnet/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:
getAvailableSlotsin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official aLapz;a(Lgc;)[Iintermediary method_5494Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[Inamed getAvailableSlotsLnet/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:
canInsertin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official aLapz;a(ILbnv;Lgc;)Zintermediary method_5492Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Znamed canInsertLnet/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:
canExtractin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official bLapz;b(ILbnv;Lgc;)Zintermediary method_5493Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Znamed canExtractLnet/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 aLcgq;a(F)Fintermediary method_11312Lnet/minecraft/class_2627;method_11312(F)Fnamed getAnimationProgressLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getAnimationProgress(F)F
-
getColor
- Mappings:
Namespace Name Mixin selector official iLcgq;i()Lbms;intermediary method_11320Lnet/minecraft/class_2627;method_11320()Lnet/minecraft/class_1767;named getColorLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getColor()Lnet/minecraft/util/DyeColor;
-
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcfl;a(ILbhk;)Lbjr;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
suffocates
public boolean suffocates()- Mappings:
Namespace Name Mixin selector official jLcgq;j()Zintermediary method_27093Lnet/minecraft/class_2627;method_27093()Znamed suffocatesLnet/minecraft/block/entity/ShulkerBoxBlockEntity;suffocates()Z
-