Package net.minecraft.block.entity
Class LockableContainerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
- All Implemented Interfaces:
Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Direct Known Subclasses:
AbstractFurnaceBlockEntity,BrewingStandBlockEntity,LootableContainerBlockEntity
public abstract class LockableContainerBlockEntity
extends BlockEntity
implements Inventory, NamedScreenHandlerFactory, Nameable
- Mappings:
Namespace Name official cijintermediary net/minecraft/class_2624named net/minecraft/block/entity/LockableContainerBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLockableContainerBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckUnlocked(PlayerEntity player)static booleancheckUnlocked(PlayerEntity player, ContainerLock lock, Text containerName)createMenu(int syncId, PlayerInventory inv, PlayerEntity player)protected abstract ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory)protected abstract TextReturns the title of this screen handler; will be a part of the open screen packet sent to the client.getName()voidreadNbt(NbtCompound nbt)voidsetCustomName(Text customName)writeNbt(NbtCompound nbt)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, 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, onClose, onOpen, removeStack, removeStack, setStack, sizeMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
lock
- Mappings:
Namespace Name Mixin selector official bLcij;b:Lasc;intermediary field_12045Lnet/minecraft/class_2624;field_12045:Lnet/minecraft/class_1273;named lockLnet/minecraft/block/entity/LockableContainerBlockEntity;lock:Lnet/minecraft/inventory/ContainerLock;
-
customName
- Mappings:
Namespace Name Mixin selector official cLcij;c:Los;intermediary field_17376Lnet/minecraft/class_2624;field_17376:Lnet/minecraft/class_2561;named customNameLnet/minecraft/block/entity/LockableContainerBlockEntity;customName:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
LockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcip;<init>(Lcir;Lgg;Lcks;)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
-
-
Method Details
-
readNbt
- Overrides:
readNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcip;a(Lna;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Overrides:
writeNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcip;b(Lna;)Lna;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/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
setCustomName
- Mappings:
Namespace Name Mixin selector official aLcij;a(Los;)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
-
getDisplayName
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
getDisplayNamein interfaceNameable- Specified by:
getDisplayNamein interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official B_Lasd;B_()Los;intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-
getCustomName
- Specified by:
getCustomNamein interfaceNameable- Mappings:
Namespace Name Mixin selector official ULase;U()Los;intermediary method_5797Lnet/minecraft/class_1275;method_5797()Lnet/minecraft/class_2561;named getCustomNameLnet/minecraft/util/Nameable;getCustomName()Lnet/minecraft/text/Text;
-
getContainerName
- Mappings:
Namespace Name Mixin selector official gLcij;g()Los;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
checkUnlocked
- Mappings:
Namespace Name Mixin selector official dLcij;d(Lbkd;)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
- Mappings:
Namespace Name Mixin selector official aLcij;a(Lbkd;Lasc;Los;)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)- Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official createMenuLbnm;createMenu(ILbkc;Lbkd;)Lbmj;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
- Mappings:
Namespace Name Mixin selector official aLcij;a(ILbkc;)Lbmj;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;
-