package com.afterkraft.kraftrpg.api.entity;

import java.util.Set;

import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

import com.afterkraft.kraftrpg.api.entity.effects.EffectType;
import com.afterkraft.kraftrpg.api.entity.effects.IEffect;

public interface Insentient {

    public int getMana();

    public void setMana(int mana);

    public double getHealth();

    public void setHealth(double health);

    public void updateInventory();

    public ItemStack getItemInHand();

    public Inventory getInventory();

    /**
     * Returns (if available) the named {@link com.afterkraft.kraftrpg.api.entity.effects.IEffect}
     *
     * @param name the name of the desired Effect
     * @return the named Effect if not null
     */
    public IEffect getEffect(String name);

    /**
     * Returns an unmodifiable set of Effects this Champion has active.
     *
     * @return an unmodifiable set of Effects this Champion has active.
     */
    public Set<IEffect> getEffects();

    /**
     * Adds the given Effect to this Insentient being. Added Effects will be
     * applied on the next tick so as to avoid
     *
     * @param IEffect
     */
    public void addEffect(IEffect IEffect);

    /**
     * Add the {@link org.bukkit.potion.PotionEffect} to this Insentient being.
     *
     * @param potion the effect to be applied
     */
    public void addPotionEffect(PotionEffect potion);

    public boolean hasEffect(String name);

    public boolean hasEffectType(EffectType type);

    public void removeEffect(IEffect IEffect);

    /**
     * Remove the {@link org.bukkit.potion.PotionEffectType} from this
     * Insentient.
     *
     * @param type of PotionEffect to remove
     */
    public void removePotionEffect(PotionEffectType type);

    public void manualRemoveEffect(IEffect IEffect);

    public void clearEffects();

    public void manualClearEffects();

    /**
     * @return true if this Insentient is marked in combat
     */
    public boolean isInCombat();

    /**
     *
     */
    public void enterCombat(EnterCombatReason reason);

    /**
     * @param reason the designated reason for leaving combat
     */
    public void leaveCombat(LeaveCombatReason reason);
}

@@ -1,8 +1,615 @@
+/*%0A * Copyright 2014 Gabriel Harris-Rouquette%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http:www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A
 package 

Add license.