Class Gen2BellEvent.RollSuccessEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent.RollSuccessEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
Gen2BellEvent
public static class Gen2BellEvent.RollSuccessEvent
extends Gen2BellEvent
implements net.neoforged.bus.api.ICancellableEvent
Gen2BellEvent
Event fires whenever a bell spawn roll is about to be made.
The probability of the bell's success can be changed by modifying the chance
field.
Cancelling this event will make the bell behave as if it failed.
- Since:
- May 27, 2018
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
Gen2BellEvent.RollSuccessEvent, Gen2BellEvent.SummonLegendary
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
playerUUID
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
getPlayer
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
-
Field Details
-
bell
-
chance
public double chance
-
-
Constructor Details
-
RollSuccessEvent
-