Class LureBall
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.LureBall
- All Implemented Interfaces:
BallLogic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getCatchBonus
(PokeBall type, PokeBallEntity entity, net.minecraft.world.entity.player.Player thrower, Pokemon pokemon, PokeBallMode mode) Get the ball bonus of this ball logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.BallLogic
doAfterEffect, doFailEffect, modifyCaptureRate
-
Constructor Details
-
LureBall
public LureBall()
-
-
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 interfaceBallLogic
- Parameters:
type
- ThePokeBall
being used.entity
- ThePokeBallEntity
being thrown, if one is present.thrower
- The player throwing the ball.pokemon
- ThePokemon
being caught.mode
- The mode this capture attempt is in.- Returns:
- The ball bonus of the Poké Ball given the provided parameters.
-