| Package | Description |
|---|---|
| com.nukkitx.api.entity | |
| com.nukkitx.api.event.player | |
| com.nukkitx.api.util |
| Modifier and Type | Method and Description |
|---|---|
Rotation |
Entity.getRotation() |
| Modifier and Type | Method and Description |
|---|---|
Rotation |
PlayerLoginEvent.getRotation()
Get the rotation at which the player will spawn.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerLoginEvent.setRotation(Rotation rotation)
Set the rotation the player will spawn.
|
| Constructor and Description |
|---|
PlayerLoginEvent(Player player,
com.flowpowered.math.vector.Vector3f spawnPosition,
Level spawnLevel,
Rotation rotation,
GameMode gameMode) |
| Modifier and Type | Field and Description |
|---|---|
static Rotation |
Rotation.ZERO |
| Modifier and Type | Method and Description |
|---|---|
static Rotation |
Rotation.from(float pitch,
float headYaw,
float yaw) |
static Rotation |
Rotation.fromVector3f(com.flowpowered.math.vector.Vector3f vector3f)
Copies the value from a specified
Vector3f instance into a Rotation instance. |
Rotation |
Location.getRotation() |
| Modifier and Type | Method and Description |
|---|---|
Location |
Location.setRotation(Rotation rotation) |
| Constructor and Description |
|---|
Location(com.flowpowered.math.vector.Vector3f position,
Level level,
Rotation rotation) |
Copyright © 2017–2019 NukkitX. All rights reserved.