mirror of https://github.com/FabricMC/yarn.git
Some item javadoc (#1668)
* Some item javadoc * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/ItemConvertible.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: Yanis48 <doublecraft.official@gmail.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: shartte <shartte@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com> * Update mappings/net/minecraft/item/Item.mapping Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: Yanis48 <doublecraft.official@gmail.com> Co-authored-by: shartte <shartte@users.noreply.github.com> Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
This commit is contained in:
parent
e6c1a58485
commit
aec004a2c6
|
@ -15,6 +15,7 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
ARG 1 settings
|
||||
METHOD method_16698 isNetworkSynced ()Z
|
||||
METHOD method_19263 isFood ()Z
|
||||
COMMENT Checks if this item is food and therefore is edible.
|
||||
METHOD method_19264 getFoodComponent ()Lnet/minecraft/class_4174;
|
||||
METHOD method_21830 getEatSound ()Lnet/minecraft/class_3414;
|
||||
METHOD method_21831 getDrinkSound ()Lnet/minecraft/class_3414;
|
||||
|
@ -22,10 +23,26 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
ARG 1 source
|
||||
METHOD method_24358 isFireproof ()Z
|
||||
METHOD method_7836 use (Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1271;
|
||||
COMMENT Called when an item is used by a player.
|
||||
COMMENT The use action, by default, is bound to the right mouse button.
|
||||
COMMENT
|
||||
COMMENT <p>This method is called on both the logical client and logical server, so take caution when overriding this method.
|
||||
COMMENT The logical side can be checked using {@link net.minecraft.world.World#isClient() world.isClient()}.
|
||||
COMMENT
|
||||
COMMENT @return a typed action result that specifies whether using the item was successful.
|
||||
COMMENT The action result contains the new item stack that the player's hand will be set to.
|
||||
ARG 1 world
|
||||
COMMENT the world the item was used in
|
||||
ARG 2 user
|
||||
COMMENT the player who used the item
|
||||
ARG 3 hand
|
||||
COMMENT the hand used
|
||||
METHOD method_7837 getEnchantability ()I
|
||||
COMMENT Gets the enchantability of an item.
|
||||
COMMENT This specifies the ability of an item to receive enchantments when enchanted using an enchanting table.
|
||||
COMMENT As the value increases, the amount and level of enchantments applied increase.
|
||||
COMMENT
|
||||
COMMENT <p>If the value of this method is 0, the item cannot be enchanted using an enchanting table.
|
||||
METHOD method_7838 isUsedOnRelease (Lnet/minecraft/class_1799;)Z
|
||||
ARG 1 stack
|
||||
METHOD method_7840 onStoppedUsing (Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;I)V
|
||||
|
@ -68,7 +85,9 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
METHOD method_7856 isEffectiveOn (Lnet/minecraft/class_2680;)Z
|
||||
ARG 1 state
|
||||
METHOD method_7857 hasRecipeRemainder ()Z
|
||||
COMMENT Checks if this item has a remainder item that is left behind when used as a crafting ingredient.
|
||||
METHOD method_7858 getRecipeRemainder ()Lnet/minecraft/class_1792;
|
||||
COMMENT Gets the remainder item that should be left behind when this item is used as a crafting ingredient.
|
||||
METHOD method_7859 getGroup ()Lnet/minecraft/class_1761;
|
||||
METHOD method_7860 postProcessTag (Lnet/minecraft/class_2487;)Z
|
||||
ARG 1 tag
|
||||
|
@ -84,6 +103,7 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
ARG 1 stack
|
||||
ARG 2 state
|
||||
METHOD method_7866 getTranslationKey (Lnet/minecraft/class_1799;)Ljava/lang/String;
|
||||
COMMENT Gets the translation key of this item using the provided item stack for context.
|
||||
ARG 1 stack
|
||||
METHOD method_7867 fromBlock (Lnet/minecraft/class_2248;)Lnet/minecraft/class_1792;
|
||||
ARG 0 block
|
||||
|
@ -101,7 +121,11 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
METHOD method_7875 byRawId (I)Lnet/minecraft/class_1792;
|
||||
ARG 0 id
|
||||
METHOD method_7876 getTranslationKey ()Ljava/lang/String;
|
||||
COMMENT Gets the translation key of this item.
|
||||
METHOD method_7877 isIn (Lnet/minecraft/class_1761;)Z
|
||||
COMMENT Checks whether this item should appear in a specified item group.
|
||||
COMMENT
|
||||
COMMENT @return true if the item is in the specified item group or the item group is {@link net.minecraft.item.ItemGroup#SEARCH}.
|
||||
ARG 1 group
|
||||
METHOD method_7878 canRepair (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
|
||||
ARG 1 stack
|
||||
|
@ -118,7 +142,14 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
ARG 1 stack
|
||||
METHOD method_7882 getMaxCount ()I
|
||||
METHOD method_7884 useOnBlock (Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
|
||||
COMMENT Called when an item is used on a block.
|
||||
COMMENT
|
||||
COMMENT <p>This method is called on both the logical client and logical server, so take caution when using this method.
|
||||
COMMENT The logical side can be checked using {@link net.minecraft.world.World#isClient() context.getWorld().isClient()}.
|
||||
COMMENT
|
||||
COMMENT @return an action result that specifies if using the item on a block was successful.
|
||||
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
|
||||
ARG 1 state
|
||||
ARG 2 world
|
||||
|
@ -127,6 +158,9 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
|
|||
METHOD method_7886 hasGlint (Lnet/minecraft/class_1799;)Z
|
||||
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.
|
||||
COMMENT
|
||||
COMMENT <p>If an item is damageable, this method is ignored and data is always synced to client.
|
||||
METHOD method_7888 inventoryTick (Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)V
|
||||
ARG 1 stack
|
||||
ARG 2 world
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
CLASS net/minecraft/class_1935 net/minecraft/item/ItemConvertible
|
||||
COMMENT Represents an object that has an item form.
|
||||
METHOD method_8389 asItem ()Lnet/minecraft/class_1792;
|
||||
COMMENT Gets this object in its item form.
|
||||
|
|
|
@ -17,6 +17,7 @@ CLASS net/minecraft/class_1838 net/minecraft/item/ItemUsageContext
|
|||
METHOD method_17698 getHitPos ()Lnet/minecraft/class_243;
|
||||
METHOD method_17699 hitsInsideBlock ()Z
|
||||
METHOD method_20287 getHand ()Lnet/minecraft/class_1268;
|
||||
METHOD method_30344 getHitResult ()Lnet/minecraft/class_3965;
|
||||
METHOD method_8036 getPlayer ()Lnet/minecraft/class_1657;
|
||||
METHOD method_8037 getBlockPos ()Lnet/minecraft/class_2338;
|
||||
METHOD method_8038 getSide ()Lnet/minecraft/class_2350;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
CLASS net/minecraft/class_1762 net/minecraft/item/NetworkSyncedItem
|
||||
COMMENT Represents an item which can contain extra data that is synced to the client.
|
||||
METHOD method_7757 createSyncPacket (Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;
|
||||
COMMENT Creates a packet that syncs additional item data to the client.
|
||||
ARG 1 stack
|
||||
ARG 2 world
|
||||
ARG 3 player
|
||||
|
|
Loading…
Reference in New Issue