Modifier and Type | Method and Description |
---|---|
Quaternion |
Server.getDefaultSpawnRotation()
Gets the default spawn rotation.
|
Modifier and Type | Method and Description |
---|---|
void |
Server.setDefaultSpawnRotation(Quaternion quaternion)
Sets the default spawn rotation.
|
WorldItem |
World.spawnCustomItem(java.lang.String uuid,
int variation,
int stacksize,
Vector3f position,
Quaternion rotation,
boolean physical)
Spawns a custom item in the world.
|
WorldItem |
World.spawnItem(short itemID,
int variation,
int stacksize,
Vector3f position,
Quaternion rotation,
boolean physical)
Spawns a global item in the world.
|
Npc |
World.spawnNpc(short typeID,
byte variation,
Vector3f position,
Quaternion rotation)
Spawns a new npc in the world.
|
Npc |
World.spawnNpc(short typeID,
byte variation,
Vector3f position,
Quaternion rotation,
boolean temporary)
Spawns a new npc in the world.
|
Npc |
World.spawnNpc(short typeID,
Vector3f position,
Quaternion rotation)
Spawns a new npc in the world.
|
WorldItem |
World.spawnObjectItem(short objectID,
int variation,
int stacksize,
Vector3f position,
Quaternion rotation,
boolean physical)
Spawns a global object item in the world, i.e. an item which represents an
object.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
NpcSpawnEvent.getRotation() |
Modifier and Type | Method and Description |
---|---|
void |
NpcSpawnEvent.setRotation(Quaternion rotation) |
Modifier and Type | Method and Description |
---|---|
Quaternion |
PlayerChangePositionEvent.getRotation() |
Quaternion |
PlayerDropItemEvent.getRotation()
Gets the item drop rotation (rotation of the item).
|
Quaternion |
PlayerRespawnEvent.getSpawnRotation()
Gets the spawn rotation.
|
Quaternion |
PlayerSpawnEvent.getSpawnRotation()
Gets the spawn rotation.
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerChangePositionEvent.setRotation(Quaternion quaternion) |
void |
PlayerRespawnEvent.setSpawnRotation(Quaternion rotation)
Sets the spawn rotation of the player.
|
Constructor and Description |
---|
PlayerChangePositionEvent(Player player,
Vector3f position,
Quaternion rotation) |
PlayerDropItemEvent(Player player,
Item item,
int amount,
int inventorySlot,
Inventory.SlotType inventorySlotType,
Vector3f position,
Quaternion rotation) |
PlayerRespawnEvent(Player player,
Vector3f spawnPosition,
Quaternion spawnRotation,
boolean keepInventory) |
PlayerSpawnEvent(Player player,
Vector3f spawnPosition,
Quaternion spawnRotation) |
Modifier and Type | Method and Description |
---|---|
Quaternion |
PlayerConstructionEvent.getConstructionRotation()
Gets the rotation of the construction element as a Quaternion.
|
Quaternion |
PlayerEditConstructionEvent.getNewConstructionRotation()
Gets the new rotation of the construction element as a Quaternion.
|
Quaternion |
PlayerObjectEvent.getObjectRotation()
Gets the rotation of the object as a Quaternion.
|
Quaternion |
PlayerVegetationEvent.getPlantRotation()
Gets the rotation of the plant as a Quaternion.
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerPlaceConstructionEvent.setConstructionRotation(Quaternion rotation)
Changes the rotation of the construction element.
|
void |
PlayerPlaceObjectEvent.setObjectRotation(Quaternion rotation)
Changes the object rotation.
|
void |
PlayerPlaceVegetationEvent.setPlantRotation(Quaternion rotation)
Changes the plant rotation.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
PlantGrowEvent.getPlantRotation()
Gets the current rotation of the plant as a Quaternion.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Npc.getRotation() |
Quaternion |
Player.getRotation()
Gets the current player rotation.
|
Quaternion |
WorldItem.getRotation()
Gets a Quaternion containing the current rotation of this item.
|
Modifier and Type | Method and Description |
---|---|
void |
Player.respawn(Vector3f position,
Quaternion rotation)
Respawns the player at the given position.
|
void |
Npc.setRotation(Quaternion quaternion) |
void |
Player.setRotation(Quaternion quaternion)
Sets the player rotation.
|
void |
WorldItem.setRotation(Quaternion quaternion)
Sets the rotation of this item.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
CustomItem.getFPBodyRotation() |
Quaternion |
CustomItem.getItemRotation()
Sets the rotation of the item in the player hands.
|
Quaternion |
CustomRecipe.getPreviewRotation() |
Modifier and Type | Method and Description |
---|---|
void |
CustomItem.setFPBodyRotation(Quaternion rotation)
Sets the rotation of the player body in first person view.
|
void |
CustomItem.setItemRotation(Quaternion rotation) |
void |
CustomRecipe.setPreviewRotation(Quaternion rotation) |
Modifier and Type | Field and Description |
---|---|
static Quaternion |
Quaternion.IDENTITY
A quaternion representing no rotation
|
static Quaternion |
Quaternion.ZERO
An "empty" quaternion.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.fromAngles(float[] angles)
Calculates this quaternion from the given Euler rotation angles
(pitch, yaw, roll) aka (attitude, heading, bank) aka (x, y, z).
|
Quaternion |
Quaternion.fromAngles(float pitch,
float yaw,
float roll)
Calculates this quaternion from the given Euler rotation angles
(pitch, yaw, roll) aka (attitude, heading, bank) aka (x, y, z).
|
Quaternion |
Quaternion.fromRotationMatrix(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22)
Builds this quaternion from a rotational matrix.
|
Quaternion |
Quaternion.fromString(java.lang.String input) |
Quaternion |
Quaternion.loadIdentity()
Sets this quaternion to 0, 0, 0, 1.
|
Quaternion |
Quaternion.lookAt(float directionx,
float directiony,
float directionz)
"Looks at" a given direction, i.e. the quaternion will be set based on the
direction.
|
Quaternion |
Quaternion.lookAt(Vector3f direction)
"Looks at" a given direction, i.e. the quaternion will be set based on the
direction.
|
Quaternion |
Quaternion.lookAt(Vector3f direction,
Vector3f up)
"Looks at" a given direction, i.e. the quaternion will be set based on the
direction and an up vector.
|
Quaternion |
Quaternion.multLocal(float scalar)
Multiplies the quaternion by a scalar.
|
Quaternion |
Quaternion.multLocal(float qx,
float qy,
float qz,
float qw)
Multiplies this quaternion by the provided values.
|
Quaternion |
Quaternion.multLocal(Quaternion quaternion)
Multiplies this quaternion by the provided quaternion.
|
Quaternion |
Quaternion.negateLocal()
Negates the values of this quaternion.
|
Quaternion |
Quaternion.normalizeLocal()
Normalizes this quaternion.
|
Quaternion |
Quaternion.set(float x,
float y,
float z,
float w)
Sets the X, Y, Z and W values of this Quaternion to the provided values.
|
Quaternion |
Quaternion.set(Quaternion quaternion)
Sets the X, Y, Z and W values of this Quaternion to the values of the
provided quaternion.
|
Quaternion |
Quaternion.setW(float w)
Sets the Z value of this Quaternion.
|
Quaternion |
Quaternion.setX(float x)
Sets the X value of this Vector3f.
|
Quaternion |
Quaternion.setY(float y)
Sets the Y value of this Vector3f.
|
Quaternion |
Quaternion.setZ(float z)
Sets the Z value of this Quaternion.
|
Modifier and Type | Method and Description |
---|---|
float |
Quaternion.dot(Quaternion quaternion)
Gets the dot product of this quaternion with the provided quaternion.
|
Quaternion |
Quaternion.multLocal(Quaternion quaternion)
Multiplies this quaternion by the provided quaternion.
|
Quaternion |
Quaternion.set(Quaternion quaternion)
Sets the X, Y, Z and W values of this Quaternion to the values of the
provided quaternion.
|
Constructor and Description |
---|
Quaternion(Quaternion copy) |
Modifier and Type | Method and Description |
---|---|
Quaternion |
WorldElement.getRotation()
Gets the rotation of this element.
|
Modifier and Type | Method and Description |
---|---|
void |
WorldElement.setRotation(Quaternion rotation)
Sets the rotation of this element.
|
Constructor and Description |
---|
World3DModel(ModelInformation model,
ImageInformation texture,
Vector3f position,
Quaternion rotation)
Creates a new
World3DModel element with the provided
model and texture at the given position (with the given rotation). |