public class TeleportEvent extends CommonEvent
CommonEvent.Sidetimestamp| Constructor and Description |
|---|
TeleportEvent(net.minecraft.server.level.ServerPlayer player,
Waypoint waypoint,
net.minecraft.core.BlockPos pos,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> fromLevel,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> destinationLevel) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> |
getDestinationLevel() |
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> |
getFromLevel() |
net.minecraft.server.level.ServerPlayer |
getPlayer()
The player being teleported.
|
net.minecraft.core.BlockPos |
getPos() |
Waypoint |
getWaypoint()
This will be null for context menu teleporting on the fullscreen map.
|
getSidecancel, isCancellable, isCancelledpublic TeleportEvent(net.minecraft.server.level.ServerPlayer player,
@Nullable
Waypoint waypoint,
net.minecraft.core.BlockPos pos,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> fromLevel,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> destinationLevel)
public net.minecraft.server.level.ServerPlayer getPlayer()
@Nullable public Waypoint getWaypoint()
public net.minecraft.core.BlockPos getPos()
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getFromLevel()
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDestinationLevel()