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.
ArceusEvent.AddPlate, ArceusEvent.CreateFlute, ArceusEvent.PlayFlute| Modifier and Type | Field and Description |
|---|---|
protected TimespaceAltarTileEntity |
altar |
protected net.minecraft.item.ItemStack |
azureFlute |
playerUUID| Constructor and Description |
|---|
PlayFlute(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack azureFlute,
TimespaceAltarTileEntity altar) |
| Modifier and Type | Method and Description |
|---|---|
TimespaceAltarTileEntity |
getAltar() |
net.minecraft.item.ItemStack |
getAzureFlute() |
getPlayer, getPlayerUUIDprotected final net.minecraft.item.ItemStack azureFlute
protected final TimespaceAltarTileEntity altar
public PlayFlute(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack azureFlute,
TimespaceAltarTileEntity altar)
public net.minecraft.item.ItemStack getAzureFlute()
public TimespaceAltarTileEntity getAltar()