Package net.minecraft.block.entity
Class LockableContainerBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,Inventory,NamedScreenHandlerFactory,Nameable
- Direct Known Subclasses:
BeaconBlockEntity,BrewingStandBlockEntity,ChestBlockEntity,DispenserBlockEntity,FurnaceBlockEntity,HopperBlockEntity
public abstract class LockableContainerBlockEntity
extends BlockEntity
implements NamedScreenHandlerFactory, LockableScreenHandlerFactory
- Mappings:
Namespace Name official alkintermediary net/minecraft/class_2228named net/minecraft/block/entity/LockableContainerBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
block, pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromNbt(NbtCompound nbt) getLock()booleanhasLock()voidsetLock(ScreenHandlerLock lock) voidtoNbt(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, getBlock, getDataValue, getEntityWorld, getPacket, getPos, getSquaredDistance, getSquaredRenderDistance, hasWorld, isRemoved, markDirty, markRemoved, onBlockAction, populateCrashReport, resetBlock, setPos, setWorld, shouldNotCopyNbtFromItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUseInv, clear, getInvMaxStackAmount, getInvSize, getInvStack, getProperties, getProperty, isValidInvStack, markDirty, onInvClose, onInvOpen, removeInvStack, setInvStack, setProperty, takeInvStackMethods inherited from interface net.minecraft.text.Nameable
getTranslationKey, hasCustomNameMethods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
createScreenHandler, getId
-
Field Details
-
lock
- Mappings:
Namespace Name Mixin selector official aLalk;a:Lon;intermediary field_9855Lnet/minecraft/class_2228;field_9855:Lnet/minecraft/class_2609;named lockLnet/minecraft/block/entity/LockableContainerBlockEntity;lock:Lnet/minecraft/inventory/ScreenHandlerLock;
-
-
Constructor Details
-
LockableContainerBlockEntity
public LockableContainerBlockEntity()
-
-
Method Details
-
fromNbt
- Overrides:
fromNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLakw;a(Ldn;)Vintermediary method_537Lnet/minecraft/class_226;method_537(Lnet/minecraft/class_322;)Vnamed fromNbtLnet/minecraft/block/entity/BlockEntity;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
toNbt
- Overrides:
toNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLakw;b(Ldn;)Vintermediary method_541Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)Vnamed toNbtLnet/minecraft/block/entity/BlockEntity;toNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
hasLock
public boolean hasLock()- Specified by:
hasLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official r_Loo;r_()Zintermediary method_10913Lnet/minecraft/class_2610;method_10913()Znamed hasLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
-
getLock
- Specified by:
getLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official iLoo;i()Lon;intermediary method_10912Lnet/minecraft/class_2610;method_10912()Lnet/minecraft/class_2609;named getLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;getLock()Lnet/minecraft/inventory/ScreenHandlerLock;
-
setLock
- Specified by:
setLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official aLoo;a(Lon;)Vintermediary method_10911Lnet/minecraft/class_2610;method_10911(Lnet/minecraft/class_2609;)Vnamed setLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
-
method_6344
- Specified by:
method_6344in interfaceNameable- Mappings:
Namespace Name Mixin selector official f_Lop;f_()Leu;intermediary method_6344Lnet/minecraft/class_2611;method_6344()Lnet/minecraft/class_1982;named method_6344Lnet/minecraft/text/Nameable;method_6344()Lnet/minecraft/text/Text;
-