Skip to content

Commit 3aebe92

Browse files
authored
fix: used data component types instead of ItemStack meta
1 parent 8348986 commit 3aebe92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/paper/dev/api/recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class TestPlugin extends JavaPlugin {
2121
NamespacedKey key = new NamespacedKey(this, "television");
2222

2323
ItemStack item = ItemStack.of(Material.BLACK_WOOL);
24-
item.editMeta(meta -> meta.itemName(Component.text("Television")));
24+
item.setData(DataComponentTypes.ITEM_NAME, Component.text("Television"));
2525

2626
ShapedRecipe recipe = new ShapedRecipe(key, item);
2727
recipe.shape("AAA", "ABA", "AAA");

0 commit comments

Comments
 (0)