Package kamkeel.npcdbc.api
Interface IKiAttack
-
public interface IKiAttack
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description bytegetChargePercent()bytegetColor()intgetDamage()bytegetDensity()bytegetSpeed()bytegetType()booleanhasEffect()booleanhasSound()booleanisDestroyerAttack()booleanrespectFormDestoryerConfig()If the NPC's current form has Destroyer configs enabled,
this ki attack will be granted Destroyer effects even if
`isDestroyerAttack` is falsevoidsetChargePercent(byte chargePercent)voidsetColor(byte color)voidsetDamage(int damage)voidsetDensity(byte density)voidsetDestroyerAttack(boolean isDestroyer)Forcefully set the ki attack to be a Destroyer typevoidsetHasEffect(boolean hasEffect)voidsetHasSound(boolean hasSound)voidsetRespectFormDestroyerConfig(boolean respectFormConfig)If the NPC's current form has Destroyer configs enabled,
this ki attack will be granted Destroyer effects even if
`isDestroyerAttack` is falsevoidsetSpeed(byte speed)voidsetType(byte type)
-
-
-
Method Detail
-
getType
byte getType()
- Returns:
- Type of Ki Attack [0 - 8] "Wave", "Blast", "Disk", "Laser", "Spiral", "BigBlast", "Barrage", "Shield", "Explosion"
-
setType
void setType(byte type)
- Parameters:
type- Type of Ki Attack [0 - 8] "Wave", "Blast", "Disk", "Laser", "Spiral", "BigBlast", "Barrage", "Shield", "Explosion"
-
getSpeed
byte getSpeed()
- Returns:
- Speed of Ki Attack
-
setSpeed
void setSpeed(byte speed)
- Parameters:
speed- Speed of Ki Attack [0 - 100]
-
getDamage
int getDamage()
-
setDamage
void setDamage(int damage)
-
hasEffect
boolean hasEffect()
-
setHasEffect
void setHasEffect(boolean hasEffect)
-
getColor
byte getColor()
- Returns:
- Color of Ki Attack [0 - 30]
0: "AlignmentBased", "white", "blue", "purple", "red", "black", "green", "yellow", "orange", "pink", "magenta",
11: "lightPink", "cyan", "darkCyan", "lightCyan", "darkGray", "gray", "darkBlue", "lightBlue", "darkPurple", "lightPurple",
21: "darkRed", "lightRed", "darkGreen", "lime", "darkYellow", "lightYellow", "gold", "lightOrange", "darkBrown", "lightBrown"
-
setColor
void setColor(byte color)
- Parameters:
color- Color of Ki Attack [0 - 30]
0: "AlignmentBased", "white", "blue", "purple", "red", "black", "green", "yellow", "orange", "pink", "magenta",
11: "lightPink", "cyan", "darkCyan", "lightCyan", "darkGray", "gray", "darkBlue", "lightBlue", "darkPurple", "lightPurple",
21: "darkRed", "lightRed", "darkGreen", "lime", "darkYellow", "lightYellow", "gold", "lightOrange", "darkBrown", "lightBrown"
-
getDensity
byte getDensity()
-
setDensity
void setDensity(byte density)
-
hasSound
boolean hasSound()
-
setHasSound
void setHasSound(boolean hasSound)
-
getChargePercent
byte getChargePercent()
-
setChargePercent
void setChargePercent(byte chargePercent)
-
respectFormDestoryerConfig
boolean respectFormDestoryerConfig()
If the NPC's current form has Destroyer configs enabled,
this ki attack will be granted Destroyer effects even if
`isDestroyerAttack` is false- Returns:
- True if it should respect those configs.
-
setRespectFormDestroyerConfig
void setRespectFormDestroyerConfig(boolean respectFormConfig)
If the NPC's current form has Destroyer configs enabled,
this ki attack will be granted Destroyer effects even if
`isDestroyerAttack` is false- Parameters:
respectFormConfig- True if it should respect those configs.
-
isDestroyerAttack
boolean isDestroyerAttack()
- Returns:
- Checks if the ki attack is forced to be a Destroyer attack
-
setDestroyerAttack
void setDestroyerAttack(boolean isDestroyer)
Forcefully set the ki attack to be a Destroyer type- Parameters:
isDestroyer- true or false
-
-