Float3

@ApiStatus.Internal
class Float3 : Record

A three float value (origin, rotation)

Parameters

x

x

y

y

z

z

Constructors

Link copied to clipboard
constructor(value: Float)
Creates floats

Types

Link copied to clipboard
class Parser : Function<T, R> , JsonDeserializer<T>

Properties

Link copied to clipboard
Center
Link copied to clipboard
Link copied to clipboard
Zero

Functions

Link copied to clipboard
@NotNull
open fun convertToMinecraftDegree(): @NotNull Float3
Converts zxy euler to xyz euler (Minecraft)
Link copied to clipboard
@NotNull
open fun div(value: Float): @NotNull Float3
Divides floats.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun invertXZ(): @NotNull Float3
Inverts XZ
Link copied to clipboard
@NotNull
open fun minus(@NotNull other: @NotNull Float3): @NotNull Float3
Subtracts other floats.
Link copied to clipboard
@NotNull
open fun plus(@NotNull other: @NotNull Float3): @NotNull Float3
Adds other floats.
Link copied to clipboard
@NotNull
open fun rotate(@NotNull quaternionf: @NotNull Quaternionf): @NotNull Float3
Rotates this float
Link copied to clipboard
@NotNull
open fun times(value: Float): @NotNull Float3
Multiplies floats.
Link copied to clipboard
@NotNull
open fun toJson(): @NotNull JsonArray
Converts floats to JSON array.
Link copied to clipboard
@NotNull
open fun toString(): @NotNull String
Link copied to clipboard
@NotNull
open fun toVector(): @NotNull Vector3f
Converts floats to vector.