java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.DreamBall
All Implemented Interfaces:
BallLogic

public class DreamBall extends Object implements BallLogic
  • Constructor Details

    • DreamBall

      public DreamBall()
  • Method Details

    • getCatchBonus

      public double getCatchBonus(PokeBall type, PokeBallEntity entity, net.minecraft.world.entity.player.Player thrower, Pokemon pokemon, PokeBallMode mode)
      Description copied from interface: BallLogic
      Get the ball bonus of this ball logic. This may be different depending on whether the capture attempt is in a battle or not.
      Specified by:
      getCatchBonus in interface BallLogic
      Parameters:
      type - The PokeBall being used.
      entity - The PokeBallEntity being thrown, if one is present.
      thrower - The player throwing the ball.
      pokemon - The Pokemon being caught.
      mode - The mode this capture attempt is in.
      Returns:
      The ball bonus of the Poké Ball given the provided parameters.