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 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 interface IPlayer
        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.