Package noppes.npcs.api.entity.data
Interface INPCStats
public interface INPCStats
-
Method Summary
Modifier and Type Method Description int
getAggroRange()
int
getCombatRegen()
int
getCreatureType()
(0=Normal, 1=Undead, 2=Arthropod) Only used for damage calculations with enchantsint
getHealthRegen()
boolean
getHideDeadBody()
boolean
getImmune(int type)
int
getMaxHealth()
INPCMelee
getMelee()
INPCRanged
getRanged()
float
getResistance(int type)
int
getRespawnTime()
int
getRespawnType()
void
setAggroRange(int range)
void
setCombatRegen(int regen)
void
setCreatureType(int type)
(0=Normal, 1=Undead, 2=Arthropod) Only used for damage calculations with enchantsvoid
setHealthRegen(int regen)
void
setHideDeadBody(boolean hide)
void
setImmune(int type, boolean bo)
void
setMaxHealth(int maxHealth)
void
setResistance(int type, float value)
void
setRespawnTime(int seconds)
void
setRespawnType(int type)
-
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)
-