| Modifier and Type | Method and Description |
|---|---|
Location |
Entity.getLocation() |
| Modifier and Type | Method and Description |
|---|---|
T |
EntityFactory.create(EntityType<T> type,
Location location) |
default boolean |
Entity.teleport(Location location) |
boolean |
Entity.teleport(Location location,
PlayerTeleportEvent.TeleportCause cause) |
| Modifier and Type | Method and Description |
|---|---|
Location |
EntityTeleportEvent.getFrom() |
Location |
EntitySpawnEvent.getLocation() |
Location |
EntityDespawnEvent.getLocation() |
Location |
CreatureSpawnEvent.getLocation() |
Location |
EntityTeleportEvent.getTo() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityTeleportEvent.setFrom(Location from) |
void |
EntityTeleportEvent.setTo(Location to) |
| Constructor and Description |
|---|
CreatureSpawnEvent(EntityType<?> type,
Location location,
CreatureSpawnEvent.SpawnReason reason) |
EntityTeleportEvent(Entity entity,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Location |
PlayerMoveEvent.getFrom() |
Location |
PlayerTeleportEvent.getFrom() |
Location |
PlayerRespawnEvent.getRespawnLocation() |
Location |
PlayerMoveEvent.getTo() |
Location |
PlayerTeleportEvent.getTo() |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerMoveEvent.setFrom(Location from) |
void |
PlayerRespawnEvent.setRespawnLocation(Location location) |
void |
PlayerMoveEvent.setTo(Location to) |
| Constructor and Description |
|---|
PlayerMoveEvent(Player player,
Location from,
Location to) |
PlayerMoveEvent(Player player,
Location from,
Location to,
boolean resetBlocks) |
PlayerRespawnEvent(Player player,
Location location) |
PlayerRespawnEvent(Player player,
Location location,
boolean firstSpawn) |
PlayerTeleportEvent(Player player,
Location from,
Location to,
PlayerTeleportEvent.TeleportCause cause) |
| Modifier and Type | Method and Description |
|---|---|
Location |
VehicleMoveEvent.getFrom() |
Location |
VehicleMoveEvent.getTo() |
| Constructor and Description |
|---|
VehicleMoveEvent(Vehicle vehicle,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Location |
Location.add(double x,
double y,
double z) |
Location |
Location.add(float x,
float y,
float z) |
static Location |
Location.from(float x,
float y,
float z,
float yaw,
float pitch,
Level level) |
static Location |
Location.from(float x,
float y,
float z,
Level level) |
static Location |
Location.from(Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch,
Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3f position,
Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3i position,
Level level) |
| Modifier and Type | Method and Description |
|---|---|
Location |
Player.getSpawn() |
| Modifier and Type | Method and Description |
|---|---|
void |
Player.setSpawn(Location spawn) |
Copyright © 2021. All rights reserved.