/*
 * License (MIT)
 *
 * Copyright (c) 2014. Granite Team
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this
 * software and associated documentation files (the "Software"), to deal in the
 * Software without restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
 * and to permit persons to whom the Software is furnished to do so, subject to the
 * following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package org.granitemc.granite.api.entity;

import org.granitemc.granite.api.entity.player.Player;
import org.granitemc.granite.api.item.ItemStack;
import org.granitemc.granite.api.utils.RayTraceResult;
import org.granitemc.granite.api.utils.Vector;

import java.util.Collection;

public interface EntityLivingBase extends Entity {

    void killByVoidDamage();

    boolean canBreatheUnderwater();

    boolean isChild();

    boolean isAdult();

    int decreaseAirSupply(int amount);

    int getExperiencePoints(Player player);

    boolean isPlayer();

    EntityLivingBase getAITarget();

    int getRevengeTimer();

    void setRevengeTarget(EntityLivingBase entity);

    EntityLivingBase getLastAttacker();

    int getLastAttackerTime();

    void setLastAttacker(Entity entity);

    int getAge();

    void clearActivePotions();

    Collection getActivePotionEffects();

    boolean isPotionActive(int potion);

    //TODO: Enable after Potion is made
    /*boolean isPotionActive(Potion potion);

    PotionEffect getActivePotionEffect(Potion potion);

    void addPotionEffect(PotionEffect potion);

    boolean isPotionApplicable(PotionEffect potion);*/

    boolean isEntityUndead();

    void removePotionEffectClient(int potion);

    void removePotionEffect(int potion);

    void heal(float amount);

    float getHealth();

    void setHealth(float amount);

    //TODO: Enable after DamageSource is made
    /*boolean attackEntityFrom(DamageSource source, float amount);*/

    //TODO: Work out parameters
    void knockBack(Entity entity, float p_70653_2_, double p_70653_3_, double p_70653_5_);

    String getHurtSound();

    String getDeathSound();

    boolean isOnLadder();

    boolean isEntityAlive();

    void fall(float distance, float damageMultiplier);

    String getFallDamageSound(int blocksFallen);

    void performHurtAnimation();

    int getTotalArmorValue();

    //TODO: Work out what the float does on this method & enable after DamageSource has been made
    /*float applyArmorCalculations(DamageSource damageSource, float p_70655_2_);

    float applyPotionDamageCalculations(DamageSource damageSource, float p_70672_2_);

    void damageEntity(DamageSource damageSource, float p_70665_2_);*/

    float getMaxHealth();

    int getArrowCountInEntity();

    void setArrowCountInEntity(int amount);

    void swingItem();

    void kill();

    IItemStack getHeldItem();

    IItemStack getEquipmentInSlot(int slot);

    IItemStack getCurrentArmor(int armotSlot);

    void setCurrentItemOrArmor(int slot, ItemStack itemStack);

    void setSprinting(boolean sprinting);

    IItemStack[] getInventory();

    void dismountEntity(Entity entity);

    void jump();

    float getAIMoveSpeed();

    void setAIMoveSpeed(float speed);

    void mountEntity(Entity entity);

    void setJumping(boolean jumping);

    boolean canEntityBeSeen(Entity entity);

    float getAbsorptionAmount();

    void setAbsorptionAmount(float amount);

    Vector getLookDirection();

    RayTraceResult rayTrace(double maxDistance, boolean stopOnLiquid);

    float getEyeHeight();

    //TODO: Enable after Team has been made
    /*Team getTeam();

    boolean isOnSameTeam(EntityLivingBase entity);

    boolean isOnTeam(Team team);*/

}

@@ -3516,33 +3516,32 @@
 id kill();%0A%0A    
-I
 ItemStack getHel
@@ -3546,33 +3546,32 @@
 eldItem();%0A%0A    
-I
 ItemStack getEqu
@@ -3591,33 +3591,32 @@
 int slot);%0A%0A    
-I
 ItemStack getCur
@@ -3753,17 +3753,16 @@
 );%0A%0A    
-I
 ItemStac

Make the darned thing compile