From 24ab4d2ee98e8a81b8e65f4dd8a69a85b60aa15a Mon Sep 17 00:00:00 2001 From: enbrain <69905075+enbrain@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:52:46 +0900 Subject: [PATCH] Add some Javadoc for Item (#1769) * Add some Javadoc for Item * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: YanisBft Co-authored-by: YanisBft --- mappings/net/minecraft/item/Item.mapping | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mappings/net/minecraft/item/Item.mapping b/mappings/net/minecraft/item/Item.mapping index 9cee933c92..5cb270f189 100644 --- a/mappings/net/minecraft/item/Item.mapping +++ b/mappings/net/minecraft/item/Item.mapping @@ -52,6 +52,7 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item ARG 4 remainingUseTicks METHOD method_7841 getMaxDamage ()I METHOD method_7843 onCraft (Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)V + COMMENT Called when a player acquires the item by crafting, smelting, smithing, etc. ARG 1 stack ARG 2 world ARG 3 player @@ -151,11 +152,15 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item ARG 1 context COMMENT the usage context METHOD method_7885 canMine (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;)Z + COMMENT Checks if a player can break a block while holding the item. ARG 1 state ARG 2 world ARG 3 pos ARG 4 miner METHOD method_7886 hasGlint (Lnet/minecraft/class_1799;)Z + COMMENT Checks if the glint effect should be applied when the item is rendered. + COMMENT + COMMENT

By default, returns true if the item has enchantments. ARG 1 stack METHOD method_7887 shouldSyncTagToClient ()Z COMMENT Checks if an item should have its NBT data stored in {@link #tag} sent to the client.