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_363named net/minecraft/block/entity/LockableContainerBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private ScreenHandlerLocklockFields inherited from class net.minecraft.block.entity.BlockEntity
block, pos, removed, world -
Constructor Summary
Constructors Constructor Description LockableContainerBlockEntity() -
Method Summary
Modifier and Type Method Description voidfromTag(CompoundTag tag)ScreenHandlerLockgetLock()TextgetName()booleanhasLock()voidsetLock(ScreenHandlerLock lock)voidtoTag(CompoundTag tag)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromTag, getBlock, getDataValue, getPacket, getPos, getSquaredDistance, getSquaredRenderDistance, getWorld, hasWorld, isRemoved, markDirty, markRemoved, onBlockAction, populateCrashReport, resetBlock, setPos, setWorld, shouldNotCopyTagFromItemMethods 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_1455Lnet/minecraft/class_363;field_1455:Lnet/minecraft/class_1724;named lockLnet/minecraft/block/entity/LockableContainerBlockEntity;lock:Lnet/minecraft/inventory/ScreenHandlerLock;
-
-
Constructor Details
-
LockableContainerBlockEntity
public LockableContainerBlockEntity()
-
-
Method Details
-
fromTag
- Overrides:
fromTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLakw;a(Ldn;)Vintermediary method_1098Lnet/minecraft/class_348;method_1098(Lnet/minecraft/class_1405;)Vnamed fromTagLnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLakw;b(Ldn;)Vintermediary method_1100Lnet/minecraft/class_348;method_1100(Lnet/minecraft/class_1405;)Vnamed toTagLnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)V
-
hasLock
public boolean hasLock()- Specified by:
hasLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official r_Loo;r_()Zintermediary method_6769Lnet/minecraft/class_1725;method_6769()Znamed hasLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
-
getLock
- Specified by:
getLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official iLoo;i()Lon;intermediary method_6768Lnet/minecraft/class_1725;method_6768()Lnet/minecraft/class_1724;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_6767Lnet/minecraft/class_1725;method_6767(Lnet/minecraft/class_1724;)Vnamed setLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
-
getName
-