ItemBuilder.java 文件源码

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

项目:SparseBukkitAPI 作者:
/**
 * Creates an ItemBuilder with initial values.
 * @param material The material.
 * @param metadata The metadata or durability.
 * @param amount The amount of items in the stack.
 * @param name The display name of the item.
 * @param lore The lore of the item (the ItemBuilder will be backed by the provided list).
 * @param enchantments A map containing the enchantments to add. {@link org.bukkit.enchantments.Enchantment} as key, level as value.
 * @param flags A {@link java.util.Set} containing all the {@link org.bukkit.inventory.ItemFlag}s to apply to this item.
 */
public ItemBuilder(Material material, int metadata, int amount, String name, List<String> lore, Map<Enchantment, Integer> enchantments, Set<ItemFlag> flags)
{
    this.material = material;
    this.metadata = metadata;
    this.amount = amount;
    this.name = name;
    this.lore = lore;
    this.enchantments = enchantments == null ? null : new HashMap<>(enchantments);
    this.flags = flags;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号