LongRangeWeapon.java 文件源码

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

项目:SuperiorCraft 作者:
public LongRangeWeapon(Material wep, String name, Material ammo, String desc, String type, double damage, int cooltime, boolean isCrit, int knockback, boolean silent, int shots, String proj) {
    this.wep = wep;
    this.name = name;
    this.ammo = ammo;
    this.desc = desc;
    this.type = type;
    this.damage = damage;
    this.cooltime = cooltime;
    this.isCrit = isCrit;
    this.knockback = knockback;
    this.silent = silent;
    this.shots = shots;
    this.proj = proj;

    ItemStack item = new ItemStack(wep);

    ItemMeta meta = item.getItemMeta();
    meta.setDisplayName(ChatColor.BOLD + name);
    ArrayList<String> lore = new ArrayList<String>();
    lore.add(ChatColor.BOLD + desc);
    lore.add(ChatColor.WHITE + type);
    meta.setLore(lore);
    item.setItemMeta(meta);

    addWep(item);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号