Class ElevatorEvent.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.ElevatorEvent
com.pixelmonmod.pixelmon.api.events.ElevatorEvent.Pre
- Enclosing class:
- ElevatorEvent
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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.ElevatorEvent
destination, goingUp, player, targetElevator
-
Constructor Summary
ConstructorDescriptionPre
(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 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
public Pre(net.minecraft.server.level.ServerPlayer player, boolean goingUp, net.minecraft.core.BlockPos targetElevator, net.minecraft.world.phys.Vec3 destination)
-