aa0307bb 发表于 2020-7-4 15:36
1.没有datavalues这东西呀
1.
ItemStack(int type, int amount, short datavalues)
2.
你不会一直看的是自动生成的api doc吧。。
aa0307bb 发表于 2020-7-4 15:36
1.没有datavalues这东西呀
至于第一个问题,MaterialData不存储颜色值
Java Doc中提到
Wools and dyes don't store their info in MaterialData, they store it in their durability. The durability of a Colorable object determines its color. Being that this is the case, you will need to modify the durability in order to do anything to the color. The only place you can set the durability outside of the constructor is the setDurability method.
你不会一直看的是自动生成的api doc吧
一直都是看
https://bukkit.windit.net/javadoc/
和
https://helpch.at/docs/
不知道是不是你说的"自动生成的api doc"
疾风暗影 发表于 2020-7-4 15:42
至于第一个问题,MaterialData不存储颜色值
Java Doc中提到
另外问一下,
setTicksLived(5960)