Class LoveBall
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.LoveBall
- All Implemented Interfaces:
BallLogic
-
Field Summary
Fields inherited from interface com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.BallLogic
ULTRA_BEAST_RATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAfterEffect(PokeBall type, PokeBallEntity entity, PixelmonEntity pixelmon) doublegetCatchBonus(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, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.item.pokeball.logic.BallLogic
doFailEffect, modifyCaptureRate
-
Constructor Details
-
LoveBall
public LoveBall()
-
-
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:BallLogicGet 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:
getCatchBonusin interfaceBallLogic- Parameters:
type- ThePokeBallbeing used.entity- ThePokeBallEntitybeing thrown, if one is present.thrower- The player throwing the ball.pokemon- ThePokemonbeing caught.mode- The mode this capture attempt is in.- Returns:
- The ball bonus of the Poké Ball given the provided parameters.
-
doAfterEffect
Description copied from interface:BallLogic- Specified by:
doAfterEffectin interfaceBallLogic- Parameters:
type- ThePokeBallbeing used.entity- ThePokeBallEntitybeing thrown, if one is present.pixelmon- ThePixelmonEntitycaught.
-