Class BasicEggGroup

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.BasicEggGroup
All Implemented Interfaces:
EggGroup, ITranslatable
Direct Known Subclasses:
UndiscoveredEggGroup, UniversalEggGroup

public class BasicEggGroup extends AbstractEggGroup
A basic EggGroup implementation that just checks if the given EggGroup is the same as this one
Since:
24/06/2022
  • Constructor Details

    • BasicEggGroup

      public BasicEggGroup(int index, String name)
      Basic constructor taking the index and the name
      Parameters:
      index - The index of the egg group
      name - The name of the egg group
  • Method Details

    • canBreedWith

      public boolean canBreedWith(EggGroup other)
      Description copied from interface: EggGroup
      Checks if the other egg group can breed with this egg group Make sure it is consistent in both directions (i.e. if it returns true in this one, it should return true in the other one)
      Parameters:
      other - The other egg group to check
      Returns:
      True if they can breed together, false if not
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object