Class ShrineOrbFillEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.ShrineOrbFillEvent
- Direct Known Subclasses:
ShrineOrbFillEvent.Post
,ShrineOrbFillEvent.Pre
public abstract class ShrineOrbFillEvent
extends net.minecraftforge.eventbus.api.Event
Fired when a player fills a Shrine Orb by knocking out a Pokémon
in battle.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the orb is filled.static class
Fired just before the orb is filled.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
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShrineOrbFillEvent
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack orb, boolean filled) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
protected final net.minecraft.server.level.ServerPlayer player -
orb
protected final net.minecraft.world.item.ItemStack orb -
filled
protected final boolean filled
-
-
Constructor Details
-
ShrineOrbFillEvent
protected ShrineOrbFillEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack orb, boolean filled)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getOrb
public net.minecraft.world.item.ItemStack getOrb() -
isFilled
public boolean isFilled()- Returns:
- true if the orb will be completely filled, false otherwise
-