Class ElevatorEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.ElevatorEvent
com.pixelmonmod.pixelmon.api.events.ElevatorEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ElevatorEvent
public static class ElevatorEvent.Pre
extends ElevatorEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired before the player is teleported
Cancelling this event will stop the player from being teleported
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.ElevatorEvent
ElevatorEvent.Post, ElevatorEvent.Pre
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.ElevatorEvent
destination, goingUp, player, targetElevator
-
Constructor Summary
ConstructorsConstructorDescriptionPre
(net.minecraft.server.level.ServerPlayer player, boolean goingUp, net.minecraft.core.BlockPos targetElevator, net.minecraft.world.phys.Vec3 destination) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.ElevatorEvent
getDestination, getPlayer, getTargetElevatorPos, isGoingUp, setDestination
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
-
Pre
public Pre(net.minecraft.server.level.ServerPlayer player, boolean goingUp, net.minecraft.core.BlockPos targetElevator, net.minecraft.world.phys.Vec3 destination)
-