EntityWrapper.java 文件源码

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

项目:PlotSquared 作者:
void storeEquipment(EntityEquipment equipment) {
    if (PS.get().checkVersion(PS.get().IMP.getServerVersion(), BukkitVersion.v1_9_0)) {
        this.lived.mainHand = equipment.getItemInMainHand().clone();
        this.lived.offHand = equipment.getItemInOffHand().clone();
    } else {
        this.lived.mainHand = equipment.getItemInHand().clone();
        this.lived.offHand = null;
    }
    this.lived.boots = equipment.getBoots().clone();
    this.lived.leggings = equipment.getLeggings().clone();
    this.lived.chestplate = equipment.getChestplate().clone();
    this.lived.helmet = equipment.getHelmet().clone();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号