Class LegendaryCheckSpawnsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.LegendaryCheckSpawnsEvent
public class LegendaryCheckSpawnsEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when someone uses /checkspawns legendary. While this event cannot be cancelled,
you can make the time until the next spawn and the chance of a legendary spawn at the next
attempt kept from the sender.
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.commands.CommandSourceStackTheCommandSourceStackusing the command.booleanWhether or not the chance of success for the next spawn attempt will be displayed.booleanWhether or not the time until the next spawn attempt will be displayed. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
sender
public final net.minecraft.commands.CommandSourceStack senderTheCommandSourceStackusing the command. -
shouldShowTime
public boolean shouldShowTimeWhether or not the time until the next spawn attempt will be displayed. Defaults to true. -
shouldShowChance
public boolean shouldShowChanceWhether or not the chance of success for the next spawn attempt will be displayed. Defaults to true.
-
-
Constructor Details
-
LegendaryCheckSpawnsEvent
public LegendaryCheckSpawnsEvent(net.minecraft.commands.CommandSourceStack sender)
-