EEntity.java 文件源码

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

项目:GameBoxx 作者:
/**
 * Gets the inventory with the equipment worn by the living entity.
 * <p/>
 * <b>Entities: </b> {@link LivingEntity}, {@link ArmorStand}
 *
 * @return the living entity's inventory
 */
public EntityEquipment getEquipment() {
    if (entity instanceof LivingEntity) {
        return ((LivingEntity) entity).getEquipment();
    } else if (entity instanceof ArmorStand) {
        return ((ArmorStand) entity).getEquipment();
    }
    return null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号