Class ArceusEvent.AddPlate
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent.AddPlate
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ArceusEvent
public static class ArceusEvent.AddPlate
extends ArceusEvent
implements net.neoforged.bus.api.ICancellableEvent
ArceusEvent
subclass event fired for when a player adds one of the elemental plates to the Arc Chalice.
This fired before the action succeeds, but after success is guaranteed.
Cancelling this event will prevent the plate from being put in.
- 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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.legendary.ArceusEvent
playerUUID
-
Constructor Summary
ConstructorsConstructorDescriptionAddPlate
(net.minecraft.server.level.ServerPlayer player, ArcChaliceTileEntity chalice, net.minecraft.world.item.ItemStack stack) -
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
-
Constructor Details
-
AddPlate
public AddPlate(net.minecraft.server.level.ServerPlayer player, ArcChaliceTileEntity chalice, net.minecraft.world.item.ItemStack stack)
-
-
Method Details
-
getPlate
Gets theEnumPlate
being put into the Arc Chalice. -
getChalice
-
getStack
public net.minecraft.world.item.ItemStack getStack()
-