Class EggHatcherProxy

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.hatch.EggHatcherProxy

public class EggHatcherProxy extends Object
Static proxy class for the EggHatcher implementation To change from the default WalkingEggHatcher implementation then use the setInstance(EggHatcher) method during initialization
  • Constructor Details

    • EggHatcherProxy

      public EggHatcherProxy()
  • Method Details

    • setInstance

      public static void setInstance(EggHatcher instance)
      Sets the EggHatcher implementation used for logic
      Parameters:
      instance - The new instance
    • tick

      public static void tick(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
      Ticks the player's storage using the EggHatcher implementation's tick logic
      Parameters:
      player - The player being ticked
      party - The storage of the player
    • getHatchBonus

      public static int getHatchBonus(PlayerPartyStorage party)
      Gets the hatch bonus for the given party
      Parameters:
      party - The party being checked
      Returns:
      The hatch bonus