Package net.pottercraft.ollivanders2
Class Ollivanders2TeleportActions.O2TeleportAction
java.lang.Object
net.pottercraft.ollivanders2.Ollivanders2TeleportActions.O2TeleportAction
- Enclosing class:
Ollivanders2TeleportActions
A teleport action
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Locationget the location the player teleported from@NotNull org.bukkit.entity.Playerget the player who teleported@NotNull org.bukkit.Locationget the location the player teleported tobooleandoes this teleport do an explosion sound on teleport?
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()get the player who teleported- Returns:
- the player who teleported
-
getToLocation
@NotNull public @NotNull org.bukkit.Location getToLocation()get the location the player teleported to- Returns:
- the destination
-
getFromLocation
@NotNull public @NotNull org.bukkit.Location getFromLocation()get the location the player teleported from- Returns:
- the source
-
isExplosionOnTeleport
public boolean isExplosionOnTeleport()does this teleport do an explosion sound on teleport?- Returns:
- true if it does an explosion sound, false otherwise
-