Class ArceusEvent.PlayFlute
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent.PlayFlute
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ArceusEvent
public static class ArceusEvent.PlayFlute
extends ArceusEvent
implements net.neoforged.bus.api.ICancellableEvent
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
ArceusEvent.AddPlate, ArceusEvent.CreateFlute, ArceusEvent.PlayFlute
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TimespaceAltarTileEntity
protected final net.minecraft.world.item.ItemStack
Fields inherited from class com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
playerUUID
-
Constructor Summary
ConstructorsConstructorDescriptionPlayFlute
(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack azureFlute, TimespaceAltarTileEntity altar) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
getPlayer, getPlayerUUID
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
-
azureFlute
protected final net.minecraft.world.item.ItemStack azureFlute -
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
-