mirror of https://github.com/FabricMC/yarn.git
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
|
CLASS net/minecraft/class_1273 net/minecraft/inventory/ContainerLock
|
||
|
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 <init> (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 <p>
|
||
|
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 fromTag (Lnet/minecraft/class_2487;)Lnet/minecraft/class_1273;
|
||
|
COMMENT Creates a new {@code ContainerLock} from the {@code Lock} key of the compound tag.
|
||
|
COMMENT <p>
|
||
|
COMMENT If the {@code Lock} key is not present, returns an empty lock.
|
||
|
ARG 0 tag
|
||
|
METHOD method_5474 toTag (Lnet/minecraft/class_2487;)V
|
||
|
COMMENT Inserts the key string of this lock into the {@code Lock} key of the compound tag.
|
||
|
ARG 1 tag
|