Suggest using Block#asItem instead of Item.fromBlock (#1743)

This commit is contained in:
enbrain 2020-11-20 03:37:53 +09:00 committed by GitHub
parent 5c96ea3f69
commit ea7929ac46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
COMMENT Gets the translation key of this item using the provided item stack for context. COMMENT Gets the translation key of this item using the provided item stack for context.
ARG 1 stack ARG 1 stack
METHOD method_7867 fromBlock (Lnet/minecraft/class_2248;)Lnet/minecraft/class_1792; METHOD method_7867 fromBlock (Lnet/minecraft/class_2248;)Lnet/minecraft/class_1792;
COMMENT @deprecated Please use {@link Block#asItem}
ARG 0 block ARG 0 block
METHOD method_7869 getOrCreateTranslationKey ()Ljava/lang/String; METHOD method_7869 getOrCreateTranslationKey ()Ljava/lang/String;
METHOD method_7870 isEnchantable (Lnet/minecraft/class_1799;)Z METHOD method_7870 isEnchantable (Lnet/minecraft/class_1799;)Z