Interface INPCStats


public interface INPCStats
  • Method Details

    • getMaxHealth

      int getMaxHealth()
    • setMaxHealth

      void setMaxHealth(int maxHealth)
    • getResistance

      float getResistance(int type)
      Parameters:
      type - 0:Melee, 1:Ranged, 2:Explosion, 3:Knockback
      Returns:
      Returns value between 0 and 2. 0 being no resistance so increased damage and 2 being fully resistant. Normal is 1
    • setResistance

      void setResistance(int type, float value)
    • getCombatRegen

      int getCombatRegen()
      Returns:
      Returns the combat health regen per second
    • setCombatRegen

      void setCombatRegen(int regen)
      Parameters:
      regen - The combat health regen per second
    • getHealthRegen

      int getHealthRegen()
      Returns:
      Returns the health regen per second when not in combat
    • setHealthRegen

      void setHealthRegen(int regen)
      Parameters:
      regen - The health regen per second when not in combat
    • getMelee

      INPCMelee getMelee()
    • getRanged

      INPCRanged getRanged()
    • getImmune

      boolean getImmune(int type)
      Parameters:
      type - 0:Potion, 1:Falldamage, 2:Sunburning, 3:Fire, 4:Drowning, 5:Cobweb
    • setImmune

      void setImmune(int type, boolean bo)
      Parameters:
      type - 0:Potion, 1:Falldamage, 2:Sunburning, 3:Fire, 4:Drowning, 5:Cobweb
    • setCreatureType

      void setCreatureType(int type)
      (0=Normal, 1=Undead, 2=Arthropod) Only used for damage calculations with enchants
    • getCreatureType

      int getCreatureType()
      (0=Normal, 1=Undead, 2=Arthropod) Only used for damage calculations with enchants
    • getRespawnType

      int getRespawnType()
      Returns:
      0:Yes, 1:Day, 2:Night, 3:No, 4:Naturally
    • setRespawnType

      void setRespawnType(int type)
      Parameters:
      type - 0:Yes, 1:Day, 2:Night, 3:No, 4:Naturally
    • getRespawnTime

      int getRespawnTime()
    • setRespawnTime

      void setRespawnTime(int seconds)
    • getHideDeadBody

      boolean getHideDeadBody()
    • setHideDeadBody

      void setHideDeadBody(boolean hide)
    • getAggroRange

      int getAggroRange()
    • setAggroRange

      void setAggroRange(int range)