Interface IPixelmon<T extends net.minecraft.entity.passive.EntityTameable>

  • Type Parameters:
    T - The underlying Minecraft EntityTameable type.
    All Superinterfaces:
    IAnimal<T>, IEntity<T>, IEntityLiving<T>, IEntityLivingBase<T>

    public interface IPixelmon<T extends net.minecraft.entity.passive.EntityTameable>
    extends IAnimal<T>
    Represents a Pixelmon (a tameable creature) with additional attributes such as shiny state, level, IV/EV values, nature, moves, and more.
    • Method Detail

      • getIsShiny

        boolean getIsShiny()
        Returns:
        true if the Pixelmon is shiny.
      • setIsShiny

        void setIsShiny​(boolean bo)
        Sets whether the Pixelmon is shiny.
        Parameters:
        bo - true for shiny.
      • getLevel

        int getLevel()
        Returns:
        The Pixelmon's level.
      • setLevel

        void setLevel​(int level)
        Sets the Pixelmon's level.
        Parameters:
        level - the new level.
      • getIV

        int getIV​(int type)
        Gets the Individual Value (IV) for the specified stat.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        Returns:
        the IV value, or -1 if invalid.
      • setIV

        void setIV​(int type,
                   int value)
        Sets the Individual Value (IV) for the specified stat.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        value - the new IV value.
      • getEV

        int getEV​(int type)
        Gets the Effort Value (EV) for the specified stat.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        Returns:
        the EV value, or -1 if invalid.
      • setEV

        void setEV​(int type,
                   int value)
        Sets the Effort Value (EV) for the specified stat.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        value - the new EV value.
      • getStat

        int getStat​(int type)
        Gets the calculated stat for the specified stat type.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        Returns:
        the stat value, or -1 if invalid.
      • setStat

        void setStat​(int type,
                     int value)
        Sets the calculated stat for the specified stat type.
        Parameters:
        type - 0: HP, 1: Attack, 2: Defense, 3: SpAttack, 4: SpDefense, 5: Speed
        value - the new stat value.
      • getSize

        int getSize()
        Returns:
        The Pixelmon's size type (0: Pygmy, 1: Runt, 2: Small, 3: Normal, 4: Huge, 5: Giant, 6: Enormous, 7: Ginormous, 8: Microscopic).
      • setSize

        void setSize​(int type)
        Sets the Pixelmon's size type.
        Parameters:
        type - the size type.
      • getHapiness

        int getHapiness()
        Returns:
        The Pixelmon's happiness (0-255).
      • setHapiness

        void setHapiness​(int value)
        Sets the Pixelmon's happiness.
        Parameters:
        value - a value between 0 and 255.
      • getNature

        int getNature()
        Returns:
        The Pixelmon's nature as an integer (see nature definitions).
      • setNature

        void setNature​(int type)
        Sets the Pixelmon's nature.
        Parameters:
        type - the nature value.
      • getPokeball

        int getPokeball()
        Returns:
        The type of Poké Ball in which the Pixelmon is contained (-1: Uncaught, 0: Pokéball, 1: Great Ball, etc.).
      • setPokeball

        void setPokeball​(int type)
        Sets the type of Poké Ball for this Pixelmon.
        Parameters:
        type - -1 for Uncaught, 0 for Pokéball, etc.
      • getNickname

        java.lang.String getNickname()
        Returns:
        The Pixelmon's nickname.
      • hasNickname

        boolean hasNickname()
        Returns:
        true if the Pixelmon has a nickname.
      • setNickname

        void setNickname​(java.lang.String name)
        Sets the Pixelmon's nickname.
        Parameters:
        name - the new nickname.
      • getMove

        java.lang.String getMove​(int slot)
        Returns the name of the move in the specified slot.
        Parameters:
        slot - the move slot.
        Returns:
        the move name.
      • setMove

        void setMove​(int slot,
                     java.lang.String move)
        Sets the move in the specified slot.
        Parameters:
        slot - the move slot.
        move - the move name.