Created
July 20, 2024 14:34
-
-
Save Nessiesson/fc21a4caead1f507f51b9817bd7b5bdb to your computer and use it in GitHub Desktop.
Revisions
-
Nessiesson created this gist
Jul 20, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ public static final Item CAKE = registerBlock(new BlockItem(Blocks.CAKE, (new Item.Properties()).stacksTo(1))); L923 LINENUMBER 944 L923 NEW net/minecraft/world/item/BlockItem DUP GETSTATIC net/minecraft/world/level/block/Blocks.CAKE : Lnet/minecraft/world/level/block/Block; NEW net/minecraft/world/item/Item$Properties DUP INVOKESPECIAL net/minecraft/world/item/Item$Properties.<init> ()V ICONST_1 INVOKEVIRTUAL net/minecraft/world/item/Item$Properties.stacksTo (I)Lnet/minecraft/world/item/Item$Properties; INVOKESPECIAL net/minecraft/world/item/BlockItem.<init> (Lnet/minecraft/world/level/block/Block;Lnet/minecraft/world/item/Item$Properties;)V INVOKESTATIC net/minecraft/world/item/Items.registerBlock (Lnet/minecraft/world/item/BlockItem;)Lnet/minecraft/world/item/Item; PUTSTATIC net/minecraft/world/item/Items.CAKE : Lnet/minecraft/world/item/Item;