Class TimespaceEvent.PlaceChain
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.TimespaceEvent
com.pixelmonmod.pixelmon.api.events.legendary.TimespaceEvent.PlaceChain
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
TimespaceEvent
public static class TimespaceEvent.PlaceChain
extends TimespaceEvent
implements net.neoforged.bus.api.ICancellableEvent
TimespaceEvent
subclass event fired when a player places a Red Chain in a Timespace Altar.
This fired before the action succeeds, but after success is guaranteed.
Cancelling this event will prevent the Red Chain from being put in.
- Since:
- October 19th, 2019
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.legendary.TimespaceEvent
TimespaceEvent.PlaceChain, TimespaceEvent.PlaceOrb, TimespaceEvent.Summon, TimespaceEvent.TakeChain, TimespaceEvent.TakeOrb
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.legendary.TimespaceEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceChain
(net.minecraft.world.entity.player.Player player, TimespaceAltarTileEntity altar, net.minecraft.world.item.ItemStack stack) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.legendary.TimespaceEvent
getPlayer
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
-
PlaceChain
public PlaceChain(net.minecraft.world.entity.player.Player player, TimespaceAltarTileEntity altar, net.minecraft.world.item.ItemStack stack)
-
-
Method Details
-
getAltar
-
getStack
public net.minecraft.world.item.ItemStack getStack()
-