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,class_2737,FurnaceBlockEntity
public abstract class LockableContainerBlockEntity
extends BlockEntity
implements LockableScreenHandlerFactory
- Mappings:
Namespace Name official bjzintermediary net/minecraft/class_2228named net/minecraft/block/entity/LockableContainerBlockEntity
-
Field Summary
FieldsFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLockableContainerBlockEntity(BlockEntityType<?> blockEntityType) -
Method Summary
Modifier and TypeMethodDescriptionvoidfromNbt(NbtCompound nbt) getLock()booleanhasLock()method_541(NbtCompound nbtCompound) voidsetLock(ScreenHandlerLock lock) Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, getEntityWorld, getPos, getSquaredDistance, getSquaredRenderDistance, getUpdatePacket, hasWorld, isRemoved, markDirty, markRemoved, method_11646, method_13321, method_13322, method_16780, method_16781, method_16783, onBlockAction, populateCrashReport, resetBlock, setPosition, 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, getHeight, getInvMaxStackAmount, getInvSize, getInvStack, getProperties, getProperty, isEmpty, isValidInvStack, markDirty, method_11260, onInvClose, onInvOpen, removeInvStack, setInvStack, setProperty, takeInvStackMethods inherited from interface net.minecraft.text.Nameable
hasCustomName, method_15540, method_15541, method_6344Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
createScreenHandler, getId
-
Field Details
-
lock
- Mappings:
Namespace Name Mixin selector official aLbjz;a:Ladp;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
-
-
Method Details
-
fromNbt
- Overrides:
fromNbtin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLbji;b(Lgy;)Vintermediary method_537Lnet/minecraft/class_226;method_537(Lnet/minecraft/class_322;)Vnamed fromNbtLnet/minecraft/block/entity/BlockEntity;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
method_541
- Overrides:
method_541in classBlockEntity- Mappings:
Namespace Name Mixin selector official aLbji;a(Lgy;)Lgy;intermediary method_541Lnet/minecraft/class_226;method_541(Lnet/minecraft/class_322;)Lnet/minecraft/class_322;named method_541Lnet/minecraft/block/entity/BlockEntity;method_541(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
hasLock
public boolean hasLock()- Specified by:
hasLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official V_Ladq;V_()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 jLadq;j()Ladp;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 aLadq;a(Ladp;)Vintermediary method_10911Lnet/minecraft/class_2610;method_10911(Lnet/minecraft/class_2609;)Vnamed setLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
-