Class GenderProperties

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.gender.GenderProperties

public class GenderProperties extends Object
Stores the visual gender information for the gender of a given Species
  • Constructor Details

    • GenderProperties

      public GenderProperties(Gender gender, PaletteProperties[] palettes)
      Default constructor
      Parameters:
      gender - The gender
      palettes - The palette properties of the gender
  • Method Details

    • getGender

      public Gender getGender()
      Gets the gender
      Returns:
      The gender
    • getPalettes

      public PaletteProperties[] getPalettes()
      Gets the palette properties of the palettes of the gender
      Returns:
      The palette properties
    • getPalettes

      public List<PaletteProperties> getPalettes(Predicate<PaletteProperties> predicate)
      Gets the palette properties of the palettes of the gender matching the predicate
      Parameters:
      predicate - the palettes should match
      Returns:
      all palette properties that matches the predicate
    • getPalette

      public PaletteProperties getPalette(String name)
      Gets the PaletteProperties associated with the given name Will return null if not found
      Parameters:
      name - The name being searched for
      Returns:
      The palette properties
    • getDefaultPalette

      public PaletteProperties getDefaultPalette()
    • isDefaultPalette

      public boolean isDefaultPalette(PaletteProperties palette)