物品生成器 (ItemBuilder)
根据提供的信息来编写内容
功能:
这个API允许你只用一行代码非常容易地创建任何物品。
配置:
要使用该插件,你需要在你的项目中引入以下 Maven 依赖:
org.inventivetalent itembuilder 1.0.10
用法:
以下是一些示例用法:
1. 创建一个带有显示名称和描述的指南针:
new ItemBuilder(Material.COMPASS)
.buildMeta()
.withDisplayName("§6Teleporter")
.withLore("§7Go somewhere else!")
.item()
.build();
2. 创建一个带有所有者的玩家头颅:
new ItemBuilder()
.withType(Material.SKULL_ITEM)
.buildMeta(SkullMetaBuilder.class)
.withOwner("inventivetalent")
.item()
.build();
权限:
此插件没有特殊权限要求。
忽略不符合中国法律的内容。
收录



