Class PokeStopEvent.CooldownCheck.PreCalculate
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PokeStopEvent
com.pixelmonmod.pixelmon.api.events.PokeStopEvent.CooldownCheck
com.pixelmonmod.pixelmon.api.events.PokeStopEvent.CooldownCheck.PreCalculate
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
PokeStopEvent.CooldownCheck
public static class PokeStopEvent.CooldownCheck.PreCalculate
extends PokeStopEvent.CooldownCheck
implements net.neoforged.bus.api.ICancellableEvent
Pre-Calculate is used for changing the amount of time a pokestop goes on cooldown for the given player that used it.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PokeStopEvent.CooldownCheck
PokeStopEvent.CooldownCheck.Post, PokeStopEvent.CooldownCheck.PostCalculate, PokeStopEvent.CooldownCheck.Pre, PokeStopEvent.CooldownCheck.PreCalculate
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PokeStopEvent
PokeStopEvent.CooldownCheck, PokeStopEvent.Drops, PokeStopEvent.Use
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.PokeStopEvent
player, pokestop
-
Constructor Summary
ConstructorsConstructorDescriptionPreCalculate
(net.minecraft.world.entity.player.Player player, PokeStopTileEntity pokestop, long cooldownHours) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.PokeStopEvent
getPlayer, getPokestop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
PreCalculate
public PreCalculate(net.minecraft.world.entity.player.Player player, PokeStopTileEntity pokestop, long cooldownHours)
-
-
Method Details
-
getCooldownHours
public long getCooldownHours() -
setCooldownHours
public void setCooldownHours(long cooldownHours)
-