类 ChestBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.LockableContainerBlockEntity
-
- net.minecraft.block.entity.LootableContainerBlockEntity
-
- net.minecraft.block.entity.ChestBlockEntity
-
- 所有已实现的接口:
ChestAnimationProgress,Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- 直接已知子类:
TrappedChestBlockEntity
public class ChestBlockEntity extends LootableContainerBlockEntity implements ChestAnimationProgress
- Mappings:
Namespace Name official chuintermediary net/minecraft/class_2595named net/minecraft/block/entity/ChestBlockEntity
-
-
字段概要
字段 修饰符和类型 字段 说明 private static intfield_31332private DefaultedList<ItemStack>inventoryprivate ChestLidAnimatorlidAnimatorprivate ChestStateManagerstateManager-
从类继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 protectedChestBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)ChestBlockEntity(BlockPos pos, BlockState state)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static voidclientTick(World world, BlockPos pos, BlockState state, ChestBlockEntity blockEntity)static voidcopyInventory(ChestBlockEntity from, ChestBlockEntity to)protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory)floatgetAnimationProgress(float tickDelta)protected TextgetContainerName()protected DefaultedList<ItemStack>getInvStackList()static intgetPlayersLookingInChestCount(BlockView world, BlockPos pos)voidonClose(PlayerEntity player)protected voidonInvOpenOrClose(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount)voidonOpen(PlayerEntity player)voidonScheduledTick()booleanonSyncedBlockEvent(int type, int data)private static voidplaySound(World world, BlockPos pos, BlockState state, SoundEvent soundEvent)voidreadNbt(CompoundTag nbt)protected voidsetInvStackList(DefaultedList<ItemStack> list)intsize()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
containsAny, count, getMaxCountPerStack, isValid, markDirty
-
从接口继承的方法 net.minecraft.util.Nameable
hasCustomName
-
-
-
-
字段详细资料
-
field_31332
private static final int field_31332
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLchu;b:Iintermediary field_31332Lnet/minecraft/class_2595;field_31332:Inamed field_31332Lnet/minecraft/block/entity/ChestBlockEntity;field_31332:I
-
inventory
private DefaultedList<ItemStack> inventory
- Mappings:
Namespace Name Mixin selector official cLchu;c:Lgn;intermediary field_11927Lnet/minecraft/class_2595;field_11927:Lnet/minecraft/class_2371;named inventoryLnet/minecraft/block/entity/ChestBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
stateManager
private final ChestStateManager stateManager
- Mappings:
Namespace Name Mixin selector official fLchu;f:Lchz;intermediary field_27209Lnet/minecraft/class_2595;field_27209:Lnet/minecraft/class_5561;named stateManagerLnet/minecraft/block/entity/ChestBlockEntity;stateManager:Lnet/minecraft/block/entity/ChestStateManager;
-
lidAnimator
private final ChestLidAnimator lidAnimator
- Mappings:
Namespace Name Mixin selector official iLchu;i:Lchv;intermediary field_27210Lnet/minecraft/class_2595;field_27210:Lnet/minecraft/class_5560;named lidAnimatorLnet/minecraft/block/entity/ChestBlockEntity;lidAnimator:Lnet/minecraft/block/entity/ChestLidAnimator;
-
-
构造器详细资料
-
ChestBlockEntity
protected ChestBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lchp;<init>(Lchr;Lgb;Lcjr;)Vintermediary <init>Lnet/minecraft/class_2586;<init>(Lnet/minecraft/class_2591;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/BlockEntity;<init>(Lnet/minecraft/block/entity/BlockEntityType;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
ChestBlockEntity
public ChestBlockEntity(BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lchu;<init>(Lgb;Lcjr;)Vintermediary <init>Lnet/minecraft/class_2595;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/ChestBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
方法详细资料
-
size
public int size()
-
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;
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, ChestBlockEntity blockEntity)
- Mappings:
Namespace Name Mixin selector official aLchu;a(Lbvr;Lgb;Lcjr;Lchu;)Vintermediary method_31670Lnet/minecraft/class_2595;method_31670(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2595;)Vnamed clientTickLnet/minecraft/block/entity/ChestBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ChestBlockEntity;)V
-
playSound
private static void playSound(World world, BlockPos pos, BlockState state, SoundEvent soundEvent)
- Mappings:
Namespace Name Mixin selector official bLchu;b(Lbvr;Lgb;Lcjr;Laev;)Vintermediary method_11050Lnet/minecraft/class_2595;method_11050(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3414;)Vnamed playSoundLnet/minecraft/block/entity/ChestBlockEntity;playSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/sound/SoundEvent;)V
-
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
-
onOpen
public void onOpen(PlayerEntity player)
-
onClose
public void onClose(PlayerEntity player)
-
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
-
getAnimationProgress
public float getAnimationProgress(float tickDelta)
- 指定者:
getAnimationProgress在接口中ChestAnimationProgress- Mappings:
Namespace Name Mixin selector official aLcil;a(F)Fintermediary method_11274Lnet/minecraft/class_2618;method_11274(F)Fnamed getAnimationProgressLnet/minecraft/client/block/ChestAnimationProgress;getAnimationProgress(F)F
-
getPlayersLookingInChestCount
public static int getPlayersLookingInChestCount(BlockView world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLchu;a(Lbuv;Lgb;)Iintermediary method_11048Lnet/minecraft/class_2595;method_11048(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Inamed getPlayersLookingInChestCountLnet/minecraft/block/entity/ChestBlockEntity;getPlayersLookingInChestCount(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
copyInventory
public static void copyInventory(ChestBlockEntity from, ChestBlockEntity to)
- Mappings:
Namespace Name Mixin selector official aLchu;a(Lchu;Lchu;)Vintermediary method_11047Lnet/minecraft/class_2595;method_11047(Lnet/minecraft/class_2595;Lnet/minecraft/class_2595;)Vnamed copyInventoryLnet/minecraft/block/entity/ChestBlockEntity;copyInventory(Lnet/minecraft/block/entity/ChestBlockEntity;Lnet/minecraft/block/entity/ChestBlockEntity;)V
-
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;
-
onScheduledTick
public void onScheduledTick()
- Mappings:
Namespace Name Mixin selector official hLchu;h()Vintermediary method_31671Lnet/minecraft/class_2595;method_31671()Vnamed onScheduledTickLnet/minecraft/block/entity/ChestBlockEntity;onScheduledTick()V
-
onInvOpenOrClose
protected void onInvOpenOrClose(World world, BlockPos pos, BlockState state, int oldViewerCount, int newViewerCount)
- Mappings:
Namespace Name Mixin selector official aLchu;a(Lbvr;Lgb;Lcjr;II)Vintermediary method_11049Lnet/minecraft/class_2595;method_11049(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)Vnamed onInvOpenOrCloseLnet/minecraft/block/entity/ChestBlockEntity;onInvOpenOrClose(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;II)V
-
-