Chat.java 文件源码

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

项目:NPlugins 作者:
private static void appendItemPotion(final StringBuilder builder, final PotionMeta meta) {
    if (meta.hasCustomEffects()) {
        builder.append("CustomPotionEffects:[");
        final Iterator<PotionEffect> it = meta.getCustomEffects().iterator();
        while (it.hasNext()) {
            final PotionEffect effect = it.next();
            builder.append("{Id:")
                   .append(effect.getType().getId())
                   .append(",Amplifier:")
                   .append(effect.getAmplifier())
                   .append(",Duration:")
                   .append(effect.getDuration())
                   .append(",Ambient:")
                   .append(effect.isAmbient() ? 1 : 0)
                   .append('}');
            if (it.hasNext()) {
                builder.append(',');
            }
        }
        builder.append("],");
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号