ItemStackBuilder.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:BlockBall 作者:
/**
 * Sets the color of the itemStack. Only works on leatherItems
 *
 * @param color color
 * @return itemStack
 */
public ItemStackBuilder setColor(Color color) {
    if (this.getItemMeta() instanceof LeatherArmorMeta) {
        final LeatherArmorMeta meta = (LeatherArmorMeta) this.getItemMeta();
        meta.setColor(color);
        this.setItemMeta(meta);
    }
    return this;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号