CLASS net/minecraft/class_1273 net/minecraft/inventory/ContainerLock FIELD field_29956 LOCK_KEY Ljava/lang/String; FIELD field_5817 EMPTY Lnet/minecraft/class_1273; COMMENT An empty container lock that can always be opened. FIELD field_5818 key Ljava/lang/String; METHOD (Ljava/lang/String;)V ARG 1 key METHOD method_5472 canOpen (Lnet/minecraft/class_1799;)Z COMMENT Returns true if this lock can be opened with the key item stack. COMMENT

COMMENT An item stack is a valid key if the stack name matches the key string of this lock, COMMENT or if the key string is empty. ARG 1 stack COMMENT the key item stack METHOD method_5473 fromNbt (Lnet/minecraft/class_2487;)Lnet/minecraft/class_1273; COMMENT Creates a new {@code ContainerLock} from the {@code Lock} key of the NBT compound. COMMENT

COMMENT If the {@code Lock} key is not present, returns an empty lock. ARG 0 nbt METHOD method_5474 writeNbt (Lnet/minecraft/class_2487;)V COMMENT Inserts the key string of this lock into the {@code Lock} key of the NBT compound. ARG 1 nbt