类 LockableContainerBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.LockableContainerBlockEntity
-
- 所有已实现的接口:
Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
public abstract class LockableContainerBlockEntity extends BlockEntity implements Inventory, NamedScreenHandlerFactory, Nameable
- Mappings:
Namespace Name official chjintermediary net/minecraft/class_2624named net/minecraft/block/entity/LockableContainerBlockEntity
-
-
字段概要
字段 修饰符和类型 字段 说明 private TextcustomNameprivate ContainerLocklock-
从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 限定符 构造器 说明 protectedLockableContainerBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state)
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 booleancheckUnlocked(PlayerEntity player)static booleancheckUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)@Nullable ScreenHandlercreateMenu(int syncId, PlayerInventory inv, PlayerEntity player)protected abstract ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory)protected abstract TextgetContainerName()@Nullable TextgetCustomName()TextgetDisplayName()Returns the title of this screen handler; will be a part of the open screen packet sent to the client.TextgetName()voidreadNbt(CompoundTag nbt)voidsetCustomName(Text customName)CompoundTagwriteNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, 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, onClose, onOpen, removeStack, removeStack, setStack, size
-
从接口继承的方法 net.minecraft.util.Nameable
hasCustomName
-
-
-
-
字段详细资料
-
lock
private ContainerLock lock
- Mappings:
Namespace Name Mixin selector official bLchj;b:Lari;intermediary field_12045Lnet/minecraft/class_2624;field_12045:Lnet/minecraft/class_1273;named lockLnet/minecraft/block/entity/LockableContainerBlockEntity;lock:Lnet/minecraft/inventory/ContainerLock;
-
customName
private Text customName
- Mappings:
Namespace Name Mixin selector official cLchj;c:Lon;intermediary field_17376Lnet/minecraft/class_2624;field_17376:Lnet/minecraft/class_2561;named customNameLnet/minecraft/block/entity/LockableContainerBlockEntity;customName:Lnet/minecraft/text/Text;
-
-
构造器详细资料
-
LockableContainerBlockEntity
protected LockableContainerBlockEntity(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
-
-
方法详细资料
-
readNbt
public void readNbt(CompoundTag nbt)
- 覆盖:
readNbt在类中BlockEntity- 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在类中BlockEntity- 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;
-
setCustomName
public void setCustomName(Text customName)
- Mappings:
Namespace Name Mixin selector official aLchj;a(Lon;)Vintermediary method_17488Lnet/minecraft/class_2624;method_17488(Lnet/minecraft/class_2561;)Vnamed setCustomNameLnet/minecraft/block/entity/LockableContainerBlockEntity;setCustomName(Lnet/minecraft/text/Text;)V
-
getName
public Text getName()
-
getDisplayName
public Text getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- 指定者:
getDisplayName在接口中Nameable- 指定者:
getDisplayName在接口中NamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official dLarj;d()Lon;intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-
getCustomName
@Nullable public @Nullable Text getCustomName()
- 指定者:
getCustomName在接口中Nameable- Mappings:
Namespace Name Mixin selector official TLark;T()Lon;intermediary method_5797Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;named getCustomNameLnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
-
getContainerName
protected abstract Text getContainerName()
- 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;
-
checkUnlocked
public boolean checkUnlocked(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official dLchj;d(Lbjf;)Zintermediary method_17489Lnet/minecraft/class_2624;method_17489(Lnet/minecraft/class_1657;)Znamed checkUnlockedLnet/minecraft/block/entity/LockableContainerBlockEntity;checkUnlocked(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
checkUnlocked
public static boolean checkUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)
- Mappings:
Namespace Name Mixin selector official aLchj;a(Lbjf;Lari;Lon;)Zintermediary method_17487Lnet/minecraft/class_2624;method_17487(Lnet/minecraft/class_1657;Lnet/minecraft/class_1273;Lnet/minecraft/class_2561;)Znamed checkUnlockedLnet/minecraft/block/entity/LockableContainerBlockEntity;checkUnlocked(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/ContainerLock;Lnet/minecraft/text/Text;)Z
-
createMenu
@Nullable public @Nullable ScreenHandler createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
- 指定者:
createMenu在接口中ScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official createMenuLbmo;createMenu(ILbje;Lbjf;)Lbll;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-
createScreenHandler
protected abstract ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
- 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;
-
-