Package noppes.npcs.api.entity
Interface IDBCPlayer
-
- All Superinterfaces:
IAnimatable
,IEntity
,IEntityLivingBase
,IPlayer
public interface IDBCPlayer extends IPlayer
Extends IPlayer with additional methods specific to DBC (Dragon Ball C) players. These methods manage stats, bonus attributes, form configurations, inventory, and more.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Adds a bonus attribute for the specified stat.void
addBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue, boolean endOfTheList)
Adds a bonus attribute for the specified stat.void
addOtherFormMastery(java.lang.String formName, double value)
Adds to the mastery value for a non-racial (other) form.void
addRacialFormMastery(byte form, double value)
Adds to the mastery value for a specific racial form.void
addToBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Increases an existing bonus attribute for the specified stat.java.lang.String
bonusAttribute(java.lang.String action, java.lang.String stat, java.lang.String bonusID)
Retrieves a bonus attribute string based on an action.java.lang.String
bonusAttribute(java.lang.String action, java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue, boolean endOfTheList)
Retrieves a bonus attribute string with full parameters.void
clearBonusAttribute(java.lang.String stat)
Clears all bonus attributes for the specified stat.int
getAuraColor()
Returns the player's aura color.int
getBody()
Returns the body value.void
getBonusAttribute(java.lang.String stat, java.lang.String bonusID)
Retrieves a bonus attribute for the specified stat.byte
getDBCClass()
Returns the player's DBC class.java.lang.String
getExtraCode()
Returns the player's extra code.byte
getForm()
Returns the player's current form.byte
getForm2()
Returns the player's secondary form.int
getFormLevel()
Returns the player's form level.java.lang.String
getFusionString()
Returns the fusion string for the player.float
getGravity()
Returns the current gravity value.java.lang.String
getHairCode()
Returns the player's hair code.int
getHP()
Returns the HP value.IItemStack[]
getInventory()
Returns the entire DBC extra inventory.IItemStack
getItem(byte slot, boolean vanity)
Retrieves the item from the specified DBC inventory slot.java.lang.String
getJRMCSE()
Returns the player's status effects.int
getKi()
Returns the Ki value.int
getKillCount(java.lang.String type)
Returns the player's kill count for a given type.double
getOtherFormMastery(java.lang.String formName)
Returns the mastery value for a non-racial (other) form.int
getPowerPoints()
Returns the player's power points.int
getPowerType()
Returns the player's power type.int
getRace()
Returns the player's race.double
getRacialFormMastery(byte form)
Returns the mastery value for a specific racial form.byte
getRelease()
Returns the current release state.java.lang.String
getSkills()
Returns the player's skills.int
getStamina()
Returns the stamina value.int
getStat(java.lang.String stat)
Retrieves the value of the specified stat.int
getTP()
Returns the TP value.boolean
isBlocking()
Checks if the player is blocking.void
removeBonusAttribute(java.lang.String stat, java.lang.String bonusID)
Removes the bonus attribute with the given identifier for the specified stat.void
setAuraColor(int color)
Sets the player's aura color.void
setBody(int body)
Sets the body value.void
setBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Sets a bonus attribute for the specified stat.void
setDBCClass(byte dbcClass)
Sets the player's DBC class.void
setExtraCode(java.lang.String extraCode)
Sets the extra code used for additional customization.void
setForm(byte form)
Sets the player's form.void
setForm2(byte form2)
Sets the player's secondary form.void
setFormLevel(int level)
Sets the player's form level.void
setGravity(float gravity)
Sets the gravity for the player.void
setHairCode(java.lang.String hairCode)
Sets the hair code used to define the player's hairstyle.void
setHP(int hp)
Sets the HP value.void
setItem(IItemStack itemStack, byte slot, boolean vanity)
Sets an item in the DBC extra inventory slot.void
setJRMCSE(java.lang.String statusEffects)
Sets the player's status effects.void
setKi(int ki)
Sets the Ki value.void
setOtherFormMastery(java.lang.String formName, double value)
Sets the mastery value for a non-racial (other) form.void
setPowerPoints(int points)
Sets the player's power points.void
setPowerType(byte powerType)
Sets the player's power type.void
setRace(byte race)
Sets the player's race.void
setRacialFormMastery(byte form, double value)
Sets the mastery value for a specific racial form.void
setRelease(byte release)
Sets the release state.void
setSkills(java.lang.String skills)
Sets the player's skills.void
setStamina(int stamina)
Sets the stamina value.void
setStat(java.lang.String stat, int value)
Sets the specified stat to the given value.void
setTP(int tp)
Sets the TP value.-
Methods inherited from interface noppes.npcs.api.entity.IEntity
capturesDrops, clearStoredData, clearTempData, despawn, dropItem, extinguish, getAge, getAllNbt, getBlockX, getBlockY, getBlockZ, getCapturedDrops, getDimension, getEntityId, getHeight, getMotion, getMotionX, getMotionY, getMotionZ, getMount, getNbt, getNbtOptional, getPitch, getPosition, getRider, getRotation, getStoredData, getStoredDataKeys, getSurroundingEntities, getSurroundingEntities, getTempData, getTempDataKeys, getTypeName, getUniqueID, getWidth, getWorld, getX, getY, getYOffset, getZ, hasCollided, hasCollidedHorizontally, hasCollidedVertically, hasStoredData, hasTempData, inFire, inLava, inWater, isAirborne, isAlive, isBurning, isSneaking, isSprinting, knockback, knockback, knockback, removeStoredData, removeTempData, setBurning, setCapturedDrops, setCapturesDrops, setImmune, setInvisible, setMotion, setMotion, setMotionX, setMotionY, setMotionZ, setMount, setNbt, setPitch, setRider, setRotation, setSneaking, setSprinting, setStoredData, setTempData, setX, setY, setZ, spawnParticle, storeAsClone, updateEntity
-
Methods inherited from interface noppes.npcs.api.entity.IEntityLivingBase
addPotionEffect, canBreatheUnderwater, clearPotionEffects, dismountEntity, getAbsorptionAmount, getAIMoveSpeed, getArmor, getArrowCountInEntity, getAttackTarget, getAttackTargetTime, getFollowRange, getHealth, getHeldItem, getKnockbackResistance, getLastAttacker, getLastAttackerTime, getLookingAtBlock, getLookingAtBlock, getLookingAtEntities, getLookingAtEntities, getLookingAtEntities, getLookingAtPos, getLookingAtPos, getLookVector, getMaxHealth, getMaxHurtTime, getMCEntity, getMeleeStrength, getPotionEffect, getSpeed, getTotalArmorValue, hurt, hurt, hurt, isAttacking, isChild, isOnLadder, renderBrokenItemStack, setAbsorptionAmount, setAIMoveSpeed, setArmor, setArrowCountInEntity, setAttackTarget, setFollowRange, setHealth, setHeldItem, setKnockbackResistance, setLastAttacker, setMaxHealth, setMaxHurtTime, setMeleeStrength, setSpeed, swingHand
-
Methods inherited from interface noppes.npcs.api.entity.IPlayer
addFactionPoints, blocking, canHarvestBlock, clearInventory, clearItemInUse, closeGui, closeOverlay, conqueredEnd, continueSounds, disableMouseInput, dropOneItem, finishQuest, finishQuest, getActiveQuests, getAnimationData, getAttributes, getCustomGui, getData, getDBCPlayer, getDisplayName, getExpLevel, getFactionPoints, getFinishedQuests, getHunger, getMagicData, getMode, getName, getOpenContainer, getOverlays, getPixelmonData, getSaturation, getScreenSize, getTimers, getType, giveItem, giveItem, hasAchievement, hasActiveQuest, hasActiveQuest, hasBukkitPermission, hasFinishedQuest, hasFinishedQuest, hasReadDialog, hasReadDialog, interactWith, inventoryItemCount, isScriptingDev, kick, mountEntity, pauseSounds, playSound, playSound, playSound, readDialog, readDialog, removeAllItems, removeItem, removeItem, removeQuest, removeQuest, resetSpawnpoint, sendMessage, setConqueredEnd, setDimension, setExpLevel, setFactionPoints, setHunger, setMode, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setRotation, setSaturation, setSpawnpoint, setSpawnpoint, showCustomGui, showCustomOverlay, showDialog, showDialog, startQuest, startQuest, stopQuest, stopQuest, stopSound, stopSounds, stopUsingItem, typeOf, unreadDialog, unreadDialog, updatePlayerInventory
-
-
-
-
Method Detail
-
setStat
void setStat(java.lang.String stat, int value)
Sets the specified stat to the given value.- Parameters:
stat
- the stat name (e.g. "str", "dex", "con", "wil", "mnd", "spi").value
- the new value.
-
getStat
int getStat(java.lang.String stat)
Retrieves the value of the specified stat.- Parameters:
stat
- the stat name.- Returns:
- the stat value.
-
addBonusAttribute
void addBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Adds a bonus attribute for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the identifier for the bonus.operation
- the arithmetic operation to apply.attributeValue
- the attribute value.
-
addBonusAttribute
void addBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue, boolean endOfTheList)
Adds a bonus attribute for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the identifier for the bonus.operation
- the arithmetic operation to apply.attributeValue
- the attribute value.endOfTheList
- whether to add the bonus at the end of the list.
-
addToBonusAttribute
void addToBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Increases an existing bonus attribute for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the identifier for the bonus.operation
- the arithmetic operation.attributeValue
- the value to add.
-
setBonusAttribute
void setBonusAttribute(java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue)
Sets a bonus attribute for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the identifier for the bonus.operation
- the arithmetic operation.attributeValue
- the value to set.
-
getBonusAttribute
void getBonusAttribute(java.lang.String stat, java.lang.String bonusID)
Retrieves a bonus attribute for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the identifier for the bonus.
-
removeBonusAttribute
void removeBonusAttribute(java.lang.String stat, java.lang.String bonusID)
Removes the bonus attribute with the given identifier for the specified stat.- Parameters:
stat
- the stat name.bonusID
- the bonus identifier.
-
clearBonusAttribute
void clearBonusAttribute(java.lang.String stat)
Clears all bonus attributes for the specified stat.- Parameters:
stat
- the stat name.
-
bonusAttribute
java.lang.String bonusAttribute(java.lang.String action, java.lang.String stat, java.lang.String bonusID)
Retrieves a bonus attribute string based on an action.- Parameters:
action
- the action (get, remove, or clear).stat
- the stat name.bonusID
- the bonus identifier.- Returns:
- the bonus attribute string.
-
bonusAttribute
java.lang.String bonusAttribute(java.lang.String action, java.lang.String stat, java.lang.String bonusID, java.lang.String operation, double attributeValue, boolean endOfTheList)
Retrieves a bonus attribute string with full parameters.- Parameters:
action
- the action (add, addto, set, get, remove, or clear).stat
- the stat name.bonusID
- the bonus identifier.operation
- the arithmetic operation.attributeValue
- the attribute value.endOfTheList
- whether to add at the end of the list.- Returns:
- the bonus attribute string.
-
setRelease
void setRelease(byte release)
Sets the release state.- Parameters:
release
- the release value.
-
getRelease
byte getRelease()
Returns the current release state.- Returns:
- the release value.
-
setBody
void setBody(int body)
Sets the body value. Also HP.- Parameters:
body
- the body value.
-
getBody
int getBody()
Returns the body value. Also HP.- Returns:
- the body.
-
setHP
void setHP(int hp)
Sets the HP value.- Parameters:
hp
- the HP value.
-
getHP
int getHP()
Returns the HP value.- Returns:
- the HP.
-
setStamina
void setStamina(int stamina)
Sets the stamina value.- Parameters:
stamina
- the stamina value.
-
getStamina
int getStamina()
Returns the stamina value.- Returns:
- the stamina.
-
setKi
void setKi(int ki)
Sets the Ki value.- Parameters:
ki
- Ki value.
-
getKi
int getKi()
Returns the Ki value.- Returns:
- Ki of Player.
-
setTP
void setTP(int tp)
Sets the TP value.- Parameters:
tp
- Set TP Amount
-
getTP
int getTP()
Returns the TP value.- Returns:
- Player TP Amount
-
setGravity
void setGravity(float gravity)
Sets the gravity for the player.- Parameters:
gravity
- the gravity value.
-
getGravity
float getGravity()
Returns the current gravity value.- Returns:
- the gravity.
-
isBlocking
boolean isBlocking()
Checks if the player is blocking.- Returns:
- true if blocking; false otherwise.
-
setHairCode
void setHairCode(java.lang.String hairCode)
Sets the hair code used to define the player's hairstyle.- Parameters:
hairCode
- the hair code string.
-
getHairCode
java.lang.String getHairCode()
Returns the player's hair code.- Returns:
- the hair code string.
-
setExtraCode
void setExtraCode(java.lang.String extraCode)
Sets the extra code used for additional customization.- Parameters:
extraCode
- the extra code string.
-
getExtraCode
java.lang.String getExtraCode()
Returns the player's extra code.- Returns:
- the extra code string.
-
setItem
void setItem(IItemStack itemStack, byte slot, boolean vanity)
Sets an item in the DBC extra inventory slot.Slot definitions:
- 0 - Weight
- 1 - Body
- 2 - Head
- 3 - 4th Vanity Slot Down to the left
- 4 - 3rd Vanity Slot Down to the left
- 5 - 2nd Vanity Slot Down to the left
- 6 - 1st Vanity Slot Down to the left
- 7 - 4th Vanity Slot Down to the right
- 8 - 3rd Vanity Slot Down to the right
- 9 - 2nd Vanity Slot Down to the right
- 10 - 1st Vanity Slot Down to the right
- Parameters:
itemStack
- the item to set (or null to remove).slot
- the slot index.vanity
- whether the slot is in the vanity inventory.
-
getItem
IItemStack getItem(byte slot, boolean vanity)
Retrieves the item from the specified DBC inventory slot.- Parameters:
slot
- the slot index.vanity
- whether the slot is in the vanity inventory.- Returns:
- the item stack, or null if empty.
-
getInventory
IItemStack[] getInventory()
Returns the entire DBC extra inventory.- Specified by:
getInventory
in interfaceIPlayer
- Returns:
- an array of item stacks.
-
setForm
void setForm(byte form)
Sets the player's form.- Parameters:
form
- the form value.
-
getForm
byte getForm()
Returns the player's current form.- Returns:
- the form value.
-
setForm2
void setForm2(byte form2)
Sets the player's secondary form.- Parameters:
form2
- the secondary form value.
-
getForm2
byte getForm2()
Returns the player's secondary form.- Returns:
- the secondary form value.
-
getRacialFormMastery
double getRacialFormMastery(byte form)
Returns the mastery value for a specific racial form.- Parameters:
form
- the form index.- Returns:
- the mastery value.
-
setRacialFormMastery
void setRacialFormMastery(byte form, double value)
Sets the mastery value for a specific racial form.- Parameters:
form
- the form index.value
- the new mastery value.
-
addRacialFormMastery
void addRacialFormMastery(byte form, double value)
Adds to the mastery value for a specific racial form.- Parameters:
form
- the form index.value
- the value to add.
-
getOtherFormMastery
double getOtherFormMastery(java.lang.String formName)
Returns the mastery value for a non-racial (other) form.- Parameters:
formName
- the name of the form.- Returns:
- the mastery value.
-
setOtherFormMastery
void setOtherFormMastery(java.lang.String formName, double value)
Sets the mastery value for a non-racial (other) form.- Parameters:
formName
- the name of the form.value
- the new mastery value.
-
addOtherFormMastery
void addOtherFormMastery(java.lang.String formName, double value)
Adds to the mastery value for a non-racial (other) form.- Parameters:
formName
- the name of the form.value
- the value to add.
-
setPowerPoints
void setPowerPoints(int points)
Sets the player's power points.- Parameters:
points
- the power points.
-
getPowerPoints
int getPowerPoints()
Returns the player's power points.- Returns:
- the power points.
-
setAuraColor
void setAuraColor(int color)
Sets the player's aura color.- Parameters:
color
- the aura color.
-
getAuraColor
int getAuraColor()
Returns the player's aura color.- Returns:
- the aura color.
-
setFormLevel
void setFormLevel(int level)
Sets the player's form level.- Parameters:
level
- the form level.
-
getFormLevel
int getFormLevel()
Returns the player's form level.- Returns:
- the form level.
-
setSkills
void setSkills(java.lang.String skills)
Sets the player's skills.- Parameters:
skills
- a string representing the player's skills.
-
getSkills
java.lang.String getSkills()
Returns the player's skills.- Returns:
- a string representing the player's skills.
-
setJRMCSE
void setJRMCSE(java.lang.String statusEffects)
Sets the player's status effects.- Parameters:
statusEffects
- a string representing status effects.
-
getJRMCSE
java.lang.String getJRMCSE()
Returns the player's status effects.- Returns:
- a string representing the player's status effects.
-
setRace
void setRace(byte race)
Sets the player's race.- Parameters:
race
- the race value.
-
getRace
int getRace()
Returns the player's race.- Returns:
- the race value.
-
setDBCClass
void setDBCClass(byte dbcClass)
Sets the player's DBC class.- Parameters:
dbcClass
- the DBC class value.
-
getDBCClass
byte getDBCClass()
Returns the player's DBC class.- Returns:
- the DBC class.
-
setPowerType
void setPowerType(byte powerType)
Sets the player's power type.- Parameters:
powerType
- the power type.
-
getPowerType
int getPowerType()
Returns the player's power type.- Returns:
- the power type.
-
getKillCount
int getKillCount(java.lang.String type)
Returns the player's kill count for a given type.- Parameters:
type
- the kill count type ("evil", "good", "neutral", or "all").- Returns:
- the kill count.
-
getFusionString
java.lang.String getFusionString()
Returns the fusion string for the player.- Returns:
- the fusion string.
-
-