Class ArceusEvent.PlayFlute

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent.PlayFlute
Enclosing class:
ArceusEvent

public static class ArceusEvent.PlayFlute extends ArceusEvent
ArceusEvent subclass event that fires when an Azure Flute is played near a Timespace Altar.

Tip: By modifying TimespaceAltarTileEntity.summoningShiny through getAltar(), you can change whether the shown Arceus is shiny.

Cancelling this event will prevent any action occurring from using the flute.

Since:
May 17, 2018
  • Field Details

    • azureFlute

      protected final net.minecraft.world.item.ItemStack azureFlute
    • altar

      protected final TimespaceAltarTileEntity altar
  • Constructor Details

    • PlayFlute

      public PlayFlute(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack azureFlute, TimespaceAltarTileEntity altar)
  • Method Details

    • getAzureFlute

      public net.minecraft.world.item.ItemStack getAzureFlute()
    • getAltar

      public TimespaceAltarTileEntity getAltar()