mirror of https://github.com/FabricMC/yarn.git
Add some Javadoc for Item (#1769)
* Add some Javadoc for Item * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: YanisBft <doublecraft.official@gmail.com> Co-authored-by: YanisBft <doublecraft.official@gmail.com>
This commit is contained in:
parent
e4a501673e
commit
24ab4d2ee9
|
@ -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 <p>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.
|
||||
|
|
Loading…
Reference in New Issue