public class ScriptNpc<T extends noppes.npcs.entity.EntityNPCInterface> extends ScriptLiving<T> implements ICustomNpc
| Modifier and Type | Field and Description |
|---|---|
noppes.npcs.entity.EntityNPCInterface |
npc |
| Modifier and Type | Method and Description |
|---|---|
void |
aimWhileShooting(boolean aimWhileShooting) |
boolean |
canAimWhileShooting() |
boolean |
canFly() |
void |
executeCommand(java.lang.String command)
On servers the enable-command-block option in the server.properties needs to be set to true
|
int |
getAccuracy() |
long |
getAge() |
IItemStack |
getArmor(int slot)
Note not all Living Entities support this
|
float |
getArrowResistance() |
boolean |
getAttackFactions() |
int |
getBurstCount() |
boolean |
getCanDrown() |
java.lang.String |
getCloakTexture() |
int |
getCollisionType() |
float |
getCombatRegen() |
boolean |
getDefendFaction() |
float |
getExplosionResistance() |
noppes.npcs.scripted.ScriptFaction |
getFaction() |
int |
getFireRate() |
java.lang.String |
getFireSound() |
double |
getFlyGravity(double flySpeed) |
int |
getFlyHeightLimit(int flyHeightLimit) |
double |
getFlySpeed(double flySpeed) |
float |
getHealthRegen() |
boolean |
getHideKilledBody() |
int |
getHomeX() |
int |
getHomeY() |
int |
getHomeZ() |
boolean |
getIgnoreCobweb() |
noppes.npcs.scripted.roles.ScriptJobInterface |
getJob() |
float |
getKnockbackResistance() |
IItemStack |
getLefttItem() |
double |
getLootChance(int slot) |
IItemStack |
getLootItem(int slot) |
int |
getLootMode() |
int |
getMaxLootXP() |
int |
getMaxProjectileDelay() |
float |
getMeleeResistance() |
int |
getMeleeSpeed() |
float |
getMeleeStrength() |
int |
getMinLootXP() |
int |
getMinPointsToSoulStone()
requires SoulStoneFriendlyNPCs in config to be true
-1 by default
if -1, the minimum points are the faction's friendly points
|
int |
getMinProjectileDelay() |
int |
getModelType() |
java.lang.String |
getName() |
IOverlayHandler |
getOverlays() |
java.lang.String |
getOverlayTexture() |
IItemStack |
getProjectileItem() |
boolean |
getProjectilesKeepTerrain() |
int |
getRangedBurst() |
int |
getRangedRage() |
int |
getRangedSpeed() |
float |
getRangedStrength() |
boolean |
getRefuseSoulStone() |
int |
getRespawnCycle() |
int |
getRespawnTime() |
boolean |
getReturnToHome() |
IItemStack |
getRightItem() |
noppes.npcs.scripted.roles.ScriptRoleInterface |
getRole() |
int |
getRotationType() |
int |
getShelterFrom() |
int |
getShotCount() |
int |
getShowBossBar() |
int |
getShowName() |
int |
getSize() |
byte |
getSkinType() |
java.lang.String |
getSkinUrl() |
java.lang.String |
getSoulStonePlayerName() |
int |
getSpeed() |
int |
getTacticalRadius() |
int |
getTacticalVariant() |
java.lang.String |
getTacticalVariantName() |
java.lang.String |
getTexture() |
ITimers |
getTimers() |
java.lang.String |
getTitle() |
int |
getType() |
int |
getVisibleType() |
void |
giveItem(IPlayer player,
IItemStack item) |
boolean |
hasLivingAnimation() |
void |
hideKilledBody(boolean hide) |
boolean |
isFlyHeightLimited(boolean limit) |
boolean |
isSoulStoneInit() |
boolean |
isVisibleTo(IPlayer player) |
void |
kill()
Kill the npc, doesnt't despawn it
|
void |
limitFlyHeight(boolean limit) |
boolean |
naturallyDespawns() |
int |
onFoundEnemy() |
void |
reset()
Basically completely resets the npc.
|
void |
say(IPlayer player,
java.lang.String message) |
void |
say(java.lang.String message) |
void |
setAccuracy(int accuracy) |
void |
setAnimation(int type) |
void |
setArmor(int slot,
IItemStack item)
Note not all Living Entities support this
|
void |
setArmsScale(float x,
float y,
float z) |
void |
setArrowResistance(float resistance) |
void |
setAttackFactions(boolean attackOtherFactions) |
void |
setBodyScale(float x,
float y,
float z) |
void |
setBurstCount(int burstCount) |
void |
setCanDrown(boolean d) |
void |
setCloakTexture(java.lang.String cloakTexture) |
void |
setCollisionType(int type) |
void |
setCombatRegen(float regen) |
void |
setDefendFaction(boolean defendFaction) |
void |
setExplosionResistance(float resistance) |
void |
setFaction(int id) |
void |
setFireRate(int rate) |
void |
setFireSound(java.lang.String fireSound) |
void |
setFly(int fly) |
void |
setFlyGravity(double flyGravity) |
void |
setFlyHeightLimit(int flyHeightLimit) |
void |
setFlySpeed(double flySpeed) |
void |
setHeadScale(float x,
float y,
float z) |
void |
setHealthRegen(float regen) |
void |
setHome(int x,
int y,
int z) |
void |
setHomeX(int x) |
void |
setHomeY(int y) |
void |
setHomeZ(int z) |
void |
setIgnoreCobweb(boolean ignore) |
void |
setJob(int job) |
void |
setKnockbackResistance(float resistance) |
void |
setLeftItem(IItemStack item) |
void |
setLegsScale(float x,
float y,
float z) |
void |
setLivingAnimation(boolean livingAnimation) |
void |
setLootChance(int slot,
double chance) |
void |
setLootItem(int slot,
IItemStack item) |
void |
setLootMode(int lootMode) |
void |
setMaxHealth(double health) |
void |
setMaxLootXP(int lootXP) |
void |
setMaxProjectileDelay(int maxDelay) |
void |
setMeleeResistance(float resistance) |
void |
setMeleeSpeed(int speed) |
void |
setMeleeStrength(float strength) |
void |
setMinLootXP(int lootXP) |
void |
setMinPointsToSoulStone(int points)
requires SoulStoneFriendlyNPCs in config to be true
-1 by default
if -1, the minimum points are the faction's friendly points
|
void |
setMinProjectileDelay(int minDelay) |
void |
setModelType(int modelType) |
void |
setName(java.lang.String name) |
void |
setNaturallyDespawns(boolean canDespawn) |
void |
setOnFoundEnemy(int onAttack) |
void |
setOverlayTexture(java.lang.String overlayTexture) |
void |
setProjectileItem(IItemStack item) |
void |
setProjectilesKeepTerrain(boolean t) |
void |
setRangedBurst(int count) |
void |
setRangedRage(int rangedRange) |
void |
setRangedSpeed(int speed) |
void |
setRangedStrength(float strength) |
void |
setRefuseSoulStone(boolean refuse) |
void |
setRespawnCycle(int cycle) |
void |
setRespawnTime(int time) |
void |
setRetaliateType(int type) |
void |
setReturnToHome(boolean bo) |
void |
setRightItem(IItemStack item) |
void |
setRole(int role) |
void |
setRotation(float rotation) |
void |
setRotationType(int rotationType) |
void |
setShelterFrom(int shelterFrom) |
void |
setShotCount(int shotCount) |
void |
setShowBossBar(int type) |
void |
setShowName(int type) |
void |
setSize(int size) |
void |
setSkinType(byte type) |
void |
setSkinUrl(java.lang.String url) |
void |
setSpeed(int speed) |
void |
setTacticalRadius(int tacticalRadius) |
void |
setTacticalVariant(int variant) |
void |
setTacticalVariant(java.lang.String variant) |
void |
setTexture(java.lang.String texture) |
void |
setTitle(java.lang.String title) |
void |
setVisibleTo(IPlayer player,
boolean visible) |
void |
setVisibleType(int type) |
void |
shootItem(IEntityLivingBase target,
IItemStack item,
int accuracy) |
boolean |
spawnedFromSoulStone() |
boolean |
typeOf(int type) |
void |
updateClient() |
canSeeEntity, clearNavigation, getAttackTarget, isAttacking, isNavigating, navigateTo, setAttackTargetaddPotionEffect, clearPotionEffects, getHealth, getHeldItem, getLookVec, getMaxHealth, getMCEntity, getMinecraftEntity, getPotionEffect, hurt, hurt, hurt, setHealth, setHeldItem, swingHandclearStoredData, clearTempData, despawn, dropItem, extinguish, getAllNbt, getBlockX, getBlockY, getBlockZ, getDimension, getEntityId, getHeight, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getPitch, getPos, getRider, getRotation, getStoredData, getSurroundingEntities, getSurroundingEntities, getTempData, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, playSound, removeStoredData, removeTempData, setBurning, setImmune, setInvisible, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPos, setPosition, setRider, setSneaking, setSprinting, setStoredData, setStoredData, setTempData, setX, setY, setZ, spawnParticle, spawnParticle, spawnParticle, spawnParticle, spawnParticle, spawnParticle, spawnParticle, storeAsCloneequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearNavigation, getMCEntity, isNavigating, navigateToaddPotionEffect, canSeeEntity, clearPotionEffects, getAttackTarget, getHealth, getHeldItem, getMaxHealth, getPotionEffect, hurt, hurt, hurt, isAttacking, setAttackTarget, setHealth, setHeldItem, swingHandclearStoredData, clearTempData, despawn, dropItem, extinguish, getAllNbt, getBlockX, getBlockY, getBlockZ, getDimension, getEntityId, getHeight, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getPitch, getPos, getRider, getRotation, getStoredData, getSurroundingEntities, getSurroundingEntities, getTempData, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, removeStoredData, removeTempData, setBurning, setImmune, setInvisible, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setPos, setPosition, setRider, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClonepublic ScriptNpc(T npc)
public int getSize()
getSize in interface ICustomNpcpublic void setSize(int size)
setSize in interface ICustomNpcsize - The size of the npc. Default is 5public int getModelType()
getModelType in interface ICustomNpcpublic void setModelType(int modelType)
setModelType in interface ICustomNpcmodelType - The modelType of the NPC. 0: Steve, 1: Steve64, 2: Alexpublic java.lang.String getName()
getName in interface ICustomNpcpublic void setRotation(float rotation)
setRotation in interface ICustomNpcsetRotation in interface IEntitysetRotation in class ScriptEntity<T extends noppes.npcs.entity.EntityNPCInterface>rotation - The rotation to be set (0-360)public void setRotationType(int rotationType)
setRotationType in interface ICustomNpcpublic int getRotationType()
getRotationType in interface ICustomNpcpublic void setName(java.lang.String name)
setName in interface ICustomNpcname - The name of the npcpublic java.lang.String getTitle()
getTitle in interface ICustomNpcpublic void setTitle(java.lang.String title)
setTitle in interface ICustomNpctitle - The title of the npcpublic java.lang.String getTexture()
getTexture in interface ICustomNpcpublic void setTexture(java.lang.String texture)
setTexture in interface ICustomNpctexture - The texture of the npcpublic int getHomeX()
getHomeX in interface ICustomNpcpublic void setHomeX(int x)
setHomeX in interface ICustomNpcx - The home x positionpublic int getHomeY()
getHomeY in interface ICustomNpcpublic void setHomeY(int y)
setHomeY in interface ICustomNpcy - The home y positionpublic int getHomeZ()
getHomeZ in interface ICustomNpcpublic void setHomeZ(int z)
setHomeZ in interface ICustomNpcz - The home x positionpublic void setHome(int x,
int y,
int z)
setHome in interface ICustomNpcx - The home x positiony - The home y positionz - The home z positionpublic void setMaxHealth(double health)
setMaxHealth in interface ICustomNpchealth - New max healthpublic void setReturnToHome(boolean bo)
setReturnToHome in interface ICustomNpcbo - Whether or not the npc will try to return to his home positionpublic boolean getReturnToHome()
getReturnToHome in interface ICustomNpcpublic noppes.npcs.scripted.ScriptFaction getFaction()
getFaction in interface ICustomNpcpublic void setFaction(int id)
setFaction in interface ICustomNpcid - The id of the new factionpublic void setAttackFactions(boolean attackOtherFactions)
setAttackFactions in interface ICustomNpcattackOtherFactions - True if you want the NPC to attack other factions, false otherwise.public boolean getAttackFactions()
getAttackFactions in interface ICustomNpcpublic void setDefendFaction(boolean defendFaction)
setDefendFaction in interface ICustomNpcdefendFaction - True if the NPC should defend faction members, false otherwise.public boolean getDefendFaction()
getDefendFaction in interface ICustomNpcpublic int getType()
getType in interface ICustomNpcgetType in interface IEntitygetType in interface IEntityLivingBasegetType in class ScriptLivingBase<T extends noppes.npcs.entity.EntityNPCInterface>EntityTypepublic boolean typeOf(int type)
typeOf in interface ICustomNpctypeOf in interface IEntitytypeOf in interface IEntityLivingBasetypeOf in class ScriptLivingBase<T extends noppes.npcs.entity.EntityNPCInterface>type - @EntityType to checkpublic void shootItem(IEntityLivingBase target, IItemStack item, int accuracy)
shootItem in interface ICustomNpctarget - The targeted npcitem - The item you want to shootaccuracy - Accuracy of the shot (0-100)public void setProjectilesKeepTerrain(boolean t)
setProjectilesKeepTerrain in interface ICustomNpcpublic boolean getProjectilesKeepTerrain()
getProjectilesKeepTerrain in interface ICustomNpcpublic void say(java.lang.String message)
say in interface ICustomNpcmessage - The message the npc will saypublic void say(IPlayer player, java.lang.String message)
say in interface ICustomNpcmessage - The message the npc will saypublic void kill()
kill in interface ICustomNpcpublic void reset()
reset in interface ICustomNpcpublic noppes.npcs.scripted.roles.ScriptRoleInterface getRole()
getRole in interface ICustomNpcpublic void setRole(int role)
setRole in interface ICustomNpcpublic noppes.npcs.scripted.roles.ScriptJobInterface getJob()
getJob in interface ICustomNpcpublic void setJob(int job)
setJob in interface ICustomNpcpublic IItemStack getRightItem()
getRightItem in interface ICustomNpcpublic void setRightItem(IItemStack item)
setRightItem in interface ICustomNpcitem - Item to be held in the right handpublic IItemStack getLefttItem()
getLefttItem in interface ICustomNpcpublic void setLeftItem(IItemStack item)
setLeftItem in interface ICustomNpcitem - Item to be held in the left handpublic IItemStack getProjectileItem()
getProjectileItem in interface ICustomNpcpublic void setProjectileItem(IItemStack item)
setProjectileItem in interface ICustomNpcitem - Item to be used as projectilepublic boolean canAimWhileShooting()
canAimWhileShooting in interface ICustomNpcpublic void aimWhileShooting(boolean aimWhileShooting)
aimWhileShooting in interface ICustomNpcaimWhileShooting - Set to true if you want the NPC to aim while shooting, false otherwise.public void setMinProjectileDelay(int minDelay)
setMinProjectileDelay in interface ICustomNpcpublic int getMinProjectileDelay()
getMinProjectileDelay in interface ICustomNpcpublic void setMaxProjectileDelay(int maxDelay)
setMaxProjectileDelay in interface ICustomNpcpublic int getMaxProjectileDelay()
getMaxProjectileDelay in interface ICustomNpcpublic void setRangedRage(int rangedRange)
setRangedRage in interface ICustomNpcpublic int getRangedRage()
getRangedRage in interface ICustomNpcpublic void setFireRate(int rate)
setFireRate in interface ICustomNpcpublic int getFireRate()
getFireRate in interface ICustomNpcpublic void setBurstCount(int burstCount)
setBurstCount in interface ICustomNpcpublic int getBurstCount()
getBurstCount in interface ICustomNpcpublic void setShotCount(int shotCount)
setShotCount in interface ICustomNpcpublic int getShotCount()
getShotCount in interface ICustomNpcpublic void setAccuracy(int accuracy)
setAccuracy in interface ICustomNpcpublic int getAccuracy()
getAccuracy in interface ICustomNpcpublic java.lang.String getFireSound()
getFireSound in interface ICustomNpcpublic void setFireSound(java.lang.String fireSound)
setFireSound in interface ICustomNpcfireSound - The new directory of the sound that plays when a projectile is shotpublic IItemStack getArmor(int slot)
ScriptLivingBasegetArmor in interface ICustomNpcgetArmor in interface IEntityLivingBasegetArmor in class ScriptLivingBase<T extends noppes.npcs.entity.EntityNPCInterface>slot - The armor slot to return. 0:head, 1:body, 2:legs, 3:bootspublic void setArmor(int slot,
IItemStack item)
ScriptLivingBasesetArmor in interface ICustomNpcsetArmor in interface IEntityLivingBasesetArmor in class ScriptLivingBase<T extends noppes.npcs.entity.EntityNPCInterface>slot - The armor slot to set. 0:head, 1:body, 2:legs, 3:bootsitem - Item to be set as armorpublic IItemStack getLootItem(int slot)
getLootItem in interface ICustomNpcslot - The slot from the NPC's drop list to return (0-8)public void setLootItem(int slot,
IItemStack item)
setLootItem in interface ICustomNpcslot - The slot from the NPC's drop list to changeitem - The item the drop list slot will be changed topublic double getLootChance(int slot)
getLootChance in interface ICustomNpcslot - The slot from the NPC's drop list to return (0-8)public void setLootChance(int slot,
double chance)
setLootChance in interface ICustomNpcslot - The slot from the NPC's drop list to changechance - The new chance of dropping the item in this slotpublic int getLootMode()
getLootMode in interface ICustomNpcpublic void setLootMode(int lootMode)
setLootMode in interface ICustomNpclootMode - The NPC's loot mode. 0 = Normal, 1 = Auto Pickuppublic void setMinLootXP(int lootXP)
setMinLootXP in interface ICustomNpclootXP - The new minimum XP gained from killing the NPC. If greater than the max XP, it will be set to it.public void setMaxLootXP(int lootXP)
setMaxLootXP in interface ICustomNpclootXP - The new maximum XP gained from killing the NPC. If less than the min XP, it will be set to it.public int getMinLootXP()
getMinLootXP in interface ICustomNpcpublic int getMaxLootXP()
getMaxLootXP in interface ICustomNpcpublic void setAnimation(int type)
setAnimation in interface ICustomNpctype - The AnimationTypepublic void setTacticalVariant(int variant)
setTacticalVariant in interface ICustomNpcvariant - Changes the tactical variant of the NPC.
0 - Rush
1 - Dodge
2 - Surround
3 - Hit N Run
4 - Ambush
5 - Stalk
6 - Nonepublic int getTacticalVariant()
getTacticalVariant in interface ICustomNpcpublic void setTacticalVariant(java.lang.String variant)
setTacticalVariant in interface ICustomNpcvariant - Sets the NPC's tactical variant by name.public java.lang.String getTacticalVariantName()
getTacticalVariantName in interface ICustomNpcpublic void setTacticalRadius(int tacticalRadius)
setTacticalRadius in interface ICustomNpctacticalRadius - Sets the radius in which the tactical variant is affected, if any. Effective for all tactical variants except Rush and None.public int getTacticalRadius()
getTacticalRadius in interface ICustomNpcpublic void setIgnoreCobweb(boolean ignore)
setIgnoreCobweb in interface ICustomNpcignore - True if the NPC goes through cobwebspublic boolean getIgnoreCobweb()
getIgnoreCobweb in interface ICustomNpcpublic void setOnFoundEnemy(int onAttack)
setOnFoundEnemy in interface ICustomNpcpublic int onFoundEnemy()
onFoundEnemy in interface ICustomNpcpublic void setShelterFrom(int shelterFrom)
setShelterFrom in interface ICustomNpcshelterFrom - An integer representing what conditions the NPC seeks shelter under.
0 - Darkenss
1 - Sunlight
2 - Disabledpublic int getShelterFrom()
getShelterFrom in interface ICustomNpcpublic boolean hasLivingAnimation()
hasLivingAnimation in interface ICustomNpcpublic void setLivingAnimation(boolean livingAnimation)
setLivingAnimation in interface ICustomNpclivingAnimation - True if you want the NPC to have a living animation, false otherwisepublic void setVisibleType(int type)
setVisibleType in interface ICustomNpctype - The visibility type of the npc, 0:visible, 1:invisible, 2:semi-visiblepublic int getVisibleType()
getVisibleType in interface ICustomNpcpublic void setVisibleTo(IPlayer player, boolean visible)
setVisibleTo in interface ICustomNpcplayer - The player this NPC becomes visible/invisible tovisible - True if you want the NPC to be invisible to the player, false otherwisepublic boolean isVisibleTo(IPlayer player)
isVisibleTo in interface ICustomNpcplayer - The player this NPC is visible/invisible topublic void setShowName(int type)
setShowName in interface ICustomNpctype - The visibility type of the name, 0:visible, 1:invisible, 2:when-attackingpublic int getShowName()
getShowName in interface ICustomNpcpublic int getShowBossBar()
getShowBossBar in interface ICustomNpcpublic void setShowBossBar(int type)
setShowBossBar in interface ICustomNpctype - The visibility type of the boss bar, 0:invisible, 1:visible, 2:when-attackingpublic float getMeleeStrength()
getMeleeStrength in interface ICustomNpcpublic void setMeleeStrength(float strength)
setMeleeStrength in interface ICustomNpcstrength - The melee strengthpublic int getMeleeSpeed()
getMeleeSpeed in interface ICustomNpcpublic void setMeleeSpeed(int speed)
setMeleeSpeed in interface ICustomNpcspeed - The melee speedpublic float getRangedStrength()
getRangedStrength in interface ICustomNpcpublic void setRangedStrength(float strength)
setRangedStrength in interface ICustomNpcstrength - The ranged strengthpublic int getRangedSpeed()
getRangedSpeed in interface ICustomNpcpublic void setRangedSpeed(int speed)
setRangedSpeed in interface ICustomNpcspeed - The ranged speedpublic int getRangedBurst()
getRangedBurst in interface ICustomNpcpublic void setRangedBurst(int count)
setRangedBurst in interface ICustomNpccount - The ranged burst countpublic int getRespawnTime()
getRespawnTime in interface ICustomNpcpublic void setRespawnTime(int time)
setRespawnTime in interface ICustomNpctime - The new amount of ticks before this entity respawnspublic int getRespawnCycle()
getRespawnCycle in interface ICustomNpcpublic void setRespawnCycle(int cycle)
setRespawnCycle in interface ICustomNpccycle - Sets when the NPC respawns. Respawn: 0 - Yes (Always), 1 - Day, 2 - Night, 3 - No (Dies permanently)public boolean getHideKilledBody()
getHideKilledBody in interface ICustomNpcpublic void hideKilledBody(boolean hide)
hideKilledBody in interface ICustomNpchide - True if the NPC is hidden when it dies. False otherwise.public boolean naturallyDespawns()
naturallyDespawns in interface ICustomNpcpublic void setNaturallyDespawns(boolean canDespawn)
setNaturallyDespawns in interface ICustomNpccanDespawn - True if the NPC should naturally despawn. False otherwise.public boolean spawnedFromSoulStone()
spawnedFromSoulStone in interface ICustomNpcpublic java.lang.String getSoulStonePlayerName()
getSoulStonePlayerName in interface ICustomNpcpublic boolean getRefuseSoulStone()
getRefuseSoulStone in interface ICustomNpcpublic void setRefuseSoulStone(boolean refuse)
setRefuseSoulStone in interface ICustomNpcrefuse - set if this npc refuses to be taken by soul stonepublic boolean isSoulStoneInit()
isSoulStoneInit in interface ICustomNpcpublic int getMinPointsToSoulStone()
ICustomNpcgetMinPointsToSoulStone in interface ICustomNpcpublic void setMinPointsToSoulStone(int points)
ICustomNpcsetMinPointsToSoulStone in interface ICustomNpcpoints - the minimum faction points needed to soulstone this npcpublic void giveItem(IPlayer player, IItemStack item)
giveItem in interface ICustomNpcplayer - The player to give the item toitem - The item given to the playerpublic void executeCommand(java.lang.String command)
ICustomNpcexecuteCommand in interface ICustomNpccommand - The command to be executedpublic void setHeadScale(float x,
float y,
float z)
setHeadScale in interface ICustomNpcpublic void setBodyScale(float x,
float y,
float z)
setBodyScale in interface ICustomNpcpublic void setArmsScale(float x,
float y,
float z)
setArmsScale in interface ICustomNpcpublic void setLegsScale(float x,
float y,
float z)
setLegsScale in interface ICustomNpcpublic void setExplosionResistance(float resistance)
setExplosionResistance in interface ICustomNpcresistance - Explosion resistance (0-2) default is 1public float getExplosionResistance()
getExplosionResistance in interface ICustomNpcpublic void setMeleeResistance(float resistance)
setMeleeResistance in interface ICustomNpcresistance - Melee resistance (0-2) default is 1public float getMeleeResistance()
getMeleeResistance in interface ICustomNpcpublic void setArrowResistance(float resistance)
setArrowResistance in interface ICustomNpcresistance - Arrow resistance (0-2) default is 1public float getArrowResistance()
getArrowResistance in interface ICustomNpcpublic void setKnockbackResistance(float resistance)
setKnockbackResistance in interface ICustomNpcresistance - Knockback resistance (0-2) default is 1public float getKnockbackResistance()
getKnockbackResistance in interface ICustomNpcpublic void setRetaliateType(int type)
setRetaliateType in interface ICustomNpctype - Retaliation type. 0:normal, 1:panic, 2:retreat, 3:nothingpublic float getCombatRegen()
getCombatRegen in interface ICustomNpcpublic void setCombatRegen(float regen)
setCombatRegen in interface ICustomNpcregen - The combat health regen per secondpublic float getHealthRegen()
getHealthRegen in interface ICustomNpcpublic void setHealthRegen(float regen)
setHealthRegen in interface ICustomNpcregen - The health regen per second when not in combatpublic boolean getCanDrown()
getCanDrown in interface ICustomNpcpublic void setCanDrown(boolean d)
setCanDrown in interface ICustomNpcpublic long getAge()
getAge in interface ICustomNpcgetAge in interface IEntitygetAge in class ScriptEntity<T extends noppes.npcs.entity.EntityNPCInterface>public ITimers getTimers()
getTimers in interface ICustomNpcpublic void setFly(int fly)
setFly in interface ICustomNpcpublic boolean canFly()
canFly in interface ICustomNpcpublic void setFlySpeed(double flySpeed)
setFlySpeed in interface ICustomNpcpublic double getFlySpeed(double flySpeed)
getFlySpeed in interface ICustomNpcpublic void setFlyGravity(double flyGravity)
setFlyGravity in interface ICustomNpcpublic double getFlyGravity(double flySpeed)
getFlyGravity in interface ICustomNpcpublic void setFlyHeightLimit(int flyHeightLimit)
setFlyHeightLimit in interface ICustomNpcpublic int getFlyHeightLimit(int flyHeightLimit)
getFlyHeightLimit in interface ICustomNpcpublic void limitFlyHeight(boolean limit)
limitFlyHeight in interface ICustomNpcpublic boolean isFlyHeightLimited(boolean limit)
isFlyHeightLimited in interface ICustomNpcpublic void setSpeed(int speed)
setSpeed in interface ICustomNpcpublic int getSpeed()
getSpeed in interface ICustomNpcpublic void setSkinType(byte type)
setSkinType in interface ICustomNpcpublic byte getSkinType()
getSkinType in interface ICustomNpcpublic void setSkinUrl(java.lang.String url)
setSkinUrl in interface ICustomNpcpublic java.lang.String getSkinUrl()
getSkinUrl in interface ICustomNpcpublic void setCloakTexture(java.lang.String cloakTexture)
setCloakTexture in interface ICustomNpcpublic java.lang.String getCloakTexture()
getCloakTexture in interface ICustomNpcpublic void setOverlayTexture(java.lang.String overlayTexture)
setOverlayTexture in interface ICustomNpcpublic java.lang.String getOverlayTexture()
getOverlayTexture in interface ICustomNpcpublic IOverlayHandler getOverlays()
getOverlays in interface ICustomNpcpublic void setCollisionType(int type)
setCollisionType in interface ICustomNpcpublic int getCollisionType()
getCollisionType in interface ICustomNpcpublic void updateClient()
updateClient in interface ICustomNpc