Class FishingEvent.Cast
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.FishingEvent
com.pixelmonmod.pixelmon.api.events.FishingEvent.Cast
- Enclosing class:
- FishingEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.FishingEvent
FishingEvent.Cast, FishingEvent.Catch, FishingEvent.Reel
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.FishingEvent
fishHook, player
-
Constructor Summary
ConstructorDescriptionCast
(net.minecraft.server.level.ServerPlayer player, HookEntity fishHook, int ticksUntilCatch, float chanceOfNothing) -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
void
setChanceOfNothing
(float chanceOfNothing) void
setTicksUntilCatch
(int ticksUntilCatch) Methods inherited from class com.pixelmonmod.pixelmon.api.events.FishingEvent
getRodType
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Cast
public Cast(net.minecraft.server.level.ServerPlayer player, HookEntity fishHook, int ticksUntilCatch, float chanceOfNothing)
-
-
Method Details
-
getTicksUntilCatch
public int getTicksUntilCatch() -
setTicksUntilCatch
public void setTicksUntilCatch(int ticksUntilCatch) -
getChanceOfNothing
public float getChanceOfNothing() -
setChanceOfNothing
public void setChanceOfNothing(float chanceOfNothing)
-