Skip to content

Instantly share code, notes, and snippets.

@Nessiesson
Created July 20, 2024 14:34
Show Gist options
  • Save Nessiesson/fc21a4caead1f507f51b9817bd7b5bdb to your computer and use it in GitHub Desktop.
Save Nessiesson/fc21a4caead1f507f51b9817bd7b5bdb to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment