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

    Nested Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
    protected final net.minecraft.world.item.ItemStack
     
    protected final net.minecraft.server.level.ServerPlayer
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ShrineOrbFillEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack orb, boolean filled)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    net.minecraft.server.level.ServerPlayer
     
    boolean
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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