物品 API
本部分提供用于便捷创建和注册复杂内容的 API。
ArmorMaterialUtil
快速创建 ArmorMaterial 的方式。
ArmorWithTickItem
为盔甲添加 onArmorTick(World world, PlayerEntity entity) 方法。
BannerUtil
快速创建旗帜物品堆叠的方式。
FoilItemBase, FoilSwordItemBase
实现 hasGlint() 并始终返回 true。
ItemBase
提供带有设置函数的物品构造器。
MonsterEntityBase
1.实现 getGroup() 并将值传入构造器
SwordItemBase
为剑添加 onSwingHand(ItemStack itemtack, World world, double x, double y, double z) 方法。
ToolMaterialUtil
快速创建 ToolMaterial 的方式