From e7ea1ee673c7157aac29716d17382bafa1bd9380 Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Thu, 26 Dec 2019 14:31:35 +0200 Subject: [PATCH] ContainerLock mappings (#1004) * ContainerLock mappings * Fix an empty comment --- .../minecraft/container/ContainerLock.mapping | 7 ------- .../minecraft/inventory/ContainerLock.mapping | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) delete mode 100644 mappings/net/minecraft/container/ContainerLock.mapping create mode 100644 mappings/net/minecraft/inventory/ContainerLock.mapping diff --git a/mappings/net/minecraft/container/ContainerLock.mapping b/mappings/net/minecraft/container/ContainerLock.mapping deleted file mode 100644 index f5b9604356..0000000000 --- a/mappings/net/minecraft/container/ContainerLock.mapping +++ /dev/null @@ -1,7 +0,0 @@ -CLASS net/minecraft/class_1273 net/minecraft/container/ContainerLock - FIELD field_5817 NONE Lnet/minecraft/class_1273; - FIELD field_5818 key Ljava/lang/String; - METHOD method_5472 isEmpty (Lnet/minecraft/class_1799;)Z - METHOD method_5473 deserialize (Lnet/minecraft/class_2487;)Lnet/minecraft/class_1273; - ARG 0 tag - METHOD method_5474 serialize (Lnet/minecraft/class_2487;)V diff --git a/mappings/net/minecraft/inventory/ContainerLock.mapping b/mappings/net/minecraft/inventory/ContainerLock.mapping new file mode 100644 index 0000000000..7dcfd996c4 --- /dev/null +++ b/mappings/net/minecraft/inventory/ContainerLock.mapping @@ -0,0 +1,21 @@ +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 (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 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

+ 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