We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8348986 commit 3aebe92Copy full SHA for 3aebe92
src/content/docs/paper/dev/api/recipes.md
@@ -21,7 +21,7 @@ public class TestPlugin extends JavaPlugin {
21
NamespacedKey key = new NamespacedKey(this, "television");
22
23
ItemStack item = ItemStack.of(Material.BLACK_WOOL);
24
- item.editMeta(meta -> meta.itemName(Component.text("Television")));
+ item.setData(DataComponentTypes.ITEM_NAME, Component.text("Television"));
25
26
ShapedRecipe recipe = new ShapedRecipe(key, item);
27
recipe.shape("AAA", "ABA", "AAA");
0 commit comments