public class WormholeTeleportEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
WormholeTeleportEvent.Post
Fires after a player has gone through a wormhole, cannot be cancelled
|
static class |
WormholeTeleportEvent.Pre |
Constructor and Description |
---|
WormholeTeleportEvent(net.minecraft.entity.player.ServerPlayerEntity player,
WormholeEntity wormhole) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.PlayerEntity |
getPlayer() |
WormholeEntity |
getWormhole() |
public WormholeTeleportEvent(net.minecraft.entity.player.ServerPlayerEntity player, WormholeEntity wormhole)
player
- - The Player being teleported by the wormholewormhole
- - The wormhole the player is being teleported bypublic net.minecraft.entity.player.PlayerEntity getPlayer()
public WormholeEntity getWormhole()