类 ShulkerBoxBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.LockableContainerBlockEntity
-
- net.minecraft.block.entity.LootableContainerBlockEntity
-
- net.minecraft.block.entity.ShulkerBoxBlockEntity
-
- 所有已实现的接口:
Inventory,SidedInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
public class ShulkerBoxBlockEntity extends LootableContainerBlockEntity implements SidedInventory
- Mappings:
Namespace Name official ciointermediary net/minecraft/class_2627named net/minecraft/block/entity/ShulkerBoxBlockEntity
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classShulkerBoxBlockEntity.AnimationStage
-
字段概要
字段 修饰符和类型 字段 说明 private floatanimationProgressprivate ShulkerBoxBlockEntity.AnimationStageanimationStageprivate static int[]AVAILABLE_SLOTSprivate @Nullable DyeColorcachedColorstatic intfield_31354static intfield_31355static intfield_31356static intfield_31357static intfield_31358static floatfield_31359static floatfield_31360private DefaultedList<ItemStack>inventorystatic StringITEMS_KEYprivate floatprevAnimationProgressprivate intviewerCount-
从类继承的字段 net.minecraft.block.entity.LootableContainerBlockEntity
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY, lootTableId, lootTableSeed
-
从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 构造器 说明 ShulkerBoxBlockEntity(@Nullable DyeColor color, BlockPos pos, BlockState state)ShulkerBoxBlockEntity(BlockPos pos, BlockState state)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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, @Nullable 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)floatgetAnimationProgress(float delta)ShulkerBoxBlockEntity.AnimationStagegetAnimationStage()int[]getAvailableSlots(Direction side)Gets the available slot positions that are reachable from a given side.BoxgetBoundingBox(BlockState state)@Nullable 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)voidreadInventoryNbt(CompoundTag nbt)voidreadNbt(CompoundTag nbt)protected voidsetInvStackList(DefaultedList<ItemStack> list)intsize()booleansuffocates()static voidtick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity)private voidupdateAnimation(World world, BlockPos pos, BlockState state)private static voidupdateNeighborStates(World world, BlockPos pos, BlockState state)CompoundTagwriteInventoryNbt(CompoundTag nbt)CompoundTagwriteNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.block.entity.LootableContainerBlockEntity
canPlayerUse, checkLootInteraction, checkUnlocked, clear, createMenu, deserializeLootTable, getStack, isEmpty, removeStack, removeStack, serializeLootTable, setLootTable, setLootTable, setStack
-
从类继承的方法 net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, getCustomName, getDisplayName, getName, setCustomName
-
从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.inventory.Inventory
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, removeStack, removeStack, setStack
-
从接口继承的方法 net.minecraft.util.Nameable
hasCustomName
-
-
-
-
字段详细资料
-
field_31354
public static final int field_31354
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcio;b:Iintermediary field_31354Lnet/minecraft/class_2627;field_31354:Inamed field_31354Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31354:I
-
field_31355
public static final int field_31355
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLcio;c:Iintermediary field_31355Lnet/minecraft/class_2627;field_31355:Inamed field_31355Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31355:I
-
field_31356
public static final int field_31356
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLcio;f:Iintermediary field_31356Lnet/minecraft/class_2627;field_31356:Inamed field_31356Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31356:I
-
field_31357
public static final int field_31357
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official iLcio;i:Iintermediary field_31357Lnet/minecraft/class_2627;field_31357:Inamed field_31357Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31357:I
-
field_31358
public static final int field_31358
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLcio;j:Iintermediary field_31358Lnet/minecraft/class_2627;field_31358:Inamed field_31358Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31358:I
-
field_31359
public static final float field_31359
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official kLcio;k:Fintermediary field_31359Lnet/minecraft/class_2627;field_31359:Fnamed field_31359Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31359:F
-
field_31360
public static final float field_31360
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official lLcio;l:Fintermediary field_31360Lnet/minecraft/class_2627;field_31360:Fnamed field_31360Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;field_31360:F
-
ITEMS_KEY
public static final String ITEMS_KEY
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official mLcio;m:Ljava/lang/String;intermediary field_31361Lnet/minecraft/class_2627;field_31361:Ljava/lang/String;named ITEMS_KEYLnet/minecraft/block/entity/ShulkerBoxBlockEntity;ITEMS_KEY:Ljava/lang/String;
-
AVAILABLE_SLOTS
private static final int[] AVAILABLE_SLOTS
- Mappings:
Namespace Name Mixin selector official qLcio;q:[Iintermediary field_12059Lnet/minecraft/class_2627;field_12059:[Inamed AVAILABLE_SLOTSLnet/minecraft/block/entity/ShulkerBoxBlockEntity;AVAILABLE_SLOTS:[I
-
inventory
private DefaultedList<ItemStack> inventory
- Mappings:
Namespace Name Mixin selector official rLcio;r:Lgn;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 sLcio;s:Iintermediary field_12053Lnet/minecraft/class_2627;field_12053:Inamed viewerCountLnet/minecraft/block/entity/ShulkerBoxBlockEntity;viewerCount:I
-
animationStage
private ShulkerBoxBlockEntity.AnimationStage animationStage
- Mappings:
Namespace Name Mixin selector official tLcio;t:Lcio$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 uLcio;u: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 vLcio;v:Fintermediary field_12055Lnet/minecraft/class_2627;field_12055:Fnamed prevAnimationProgressLnet/minecraft/block/entity/ShulkerBoxBlockEntity;prevAnimationProgress:F
-
cachedColor
@Nullable private final @Nullable DyeColor cachedColor
- Mappings:
Namespace Name Mixin selector official wLcio;w:Lbon;intermediary field_12060Lnet/minecraft/class_2627;field_12060:Lnet/minecraft/class_1767;named cachedColorLnet/minecraft/block/entity/ShulkerBoxBlockEntity;cachedColor:Lnet/minecraft/util/DyeColor;
-
-
构造器详细资料
-
ShulkerBoxBlockEntity
public ShulkerBoxBlockEntity(@Nullable @Nullable DyeColor color, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lcio;<init>(Lbon;Lgb;Lcjr;)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
public ShulkerBoxBlockEntity(BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lcio;<init>(Lgb;Lcjr;)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
-
-
方法详细资料
-
tick
public static void tick(World world, BlockPos pos, BlockState state, ShulkerBoxBlockEntity blockEntity)
- Mappings:
Namespace Name Mixin selector official aLcio;a(Lbvr;Lgb;Lcjr;Lcio;)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
private void updateAnimation(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official bLcio;b(Lbvr;Lgb;Lcjr;)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
public ShulkerBoxBlockEntity.AnimationStage getAnimationStage()
- Mappings:
Namespace Name Mixin selector official hLcio;h()Lcio$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
public Box getBoundingBox(BlockState state)
- Mappings:
Namespace Name Mixin selector official aLcio;a(Lcjr;)Ldlv;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
private void pushEntities(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official cLcio;c(Lbvr;Lgb;Lcjr;)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)- 覆盖:
onSyncedBlockEvent在类中BlockEntity- Mappings:
Namespace Name Mixin selector official a_Lchp;a_(II)Zintermediary method_11004Lnet/minecraft/class_2586;method_11004(II)Znamed onSyncedBlockEventLnet/minecraft/block/entity/BlockEntity;onSyncedBlockEvent(II)Z
-
updateNeighborStates
private static void updateNeighborStates(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official dLcio;d(Lbvr;Lgb;Lcjr;)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
public void onOpen(PlayerEntity player)
-
onClose
public void onClose(PlayerEntity player)
-
getContainerName
protected Text getContainerName()
- 指定者:
getContainerName在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLchj;g()Lon;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
readNbt
public void readNbt(CompoundTag nbt)
- 覆盖:
readNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchp;a(Lmv;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
public CompoundTag writeNbt(CompoundTag nbt)
- 覆盖:
writeNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLchp;b(Lmv;)Lmv;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
readInventoryNbt
public void readInventoryNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official eLcio;e(Lmv;)Vintermediary method_11319Lnet/minecraft/class_2627;method_11319(Lnet/minecraft/class_2487;)Vnamed readInventoryNbtLnet/minecraft/block/entity/ShulkerBoxBlockEntity;readInventoryNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeInventoryNbt
public CompoundTag writeInventoryNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official fLcio;f(Lmv;)Lmv;intermediary method_11317Lnet/minecraft/class_2627;method_11317(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeInventoryNbtLnet/minecraft/block/entity/ShulkerBoxBlockEntity;writeInventoryNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getInvStackList
protected DefaultedList<ItemStack> getInvStackList()
- 指定者:
getInvStackList在类中LootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official fLcim;f()Lgn;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
protected void setInvStackList(DefaultedList<ItemStack> list)
- 指定者:
setInvStackList在类中LootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcim;a(Lgn;)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
public int[] getAvailableSlots(Direction side)
Gets the available slot positions that are reachable from a given side.- 指定者:
getAvailableSlots在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official aLarp;a(Lgg;)[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
public boolean canInsert(int slot, ItemStack stack, @Nullable @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- 指定者:
canInsert在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official aLarp;a(ILbpr;Lgg;)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
public 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.- 指定者:
canExtract在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official bLarp;b(ILbpr;Lgg;)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 aLcio;a(F)Fintermediary method_11312Lnet/minecraft/class_2627;method_11312(F)Fnamed getAnimationProgressLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getAnimationProgress(F)F
-
getColor
@Nullable public @Nullable DyeColor getColor()
- Mappings:
Namespace Name Mixin selector official iLcio;i()Lbon;intermediary method_11320Lnet/minecraft/class_2627;method_11320()Lnet/minecraft/class_1767;named getColorLnet/minecraft/block/entity/ShulkerBoxBlockEntity;getColor()Lnet/minecraft/util/DyeColor;
-
createScreenHandler
protected ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
- 指定者:
createScreenHandler在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchj;a(ILbje;)Lbll;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 jLcio;j()Zintermediary method_27093Lnet/minecraft/class_2627;method_27093()Znamed suffocatesLnet/minecraft/block/entity/ShulkerBoxBlockEntity;suffocates()Z
-
-