BetterModel
Toggle table of contents
1.8.2-SNAPSHOT-213
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.data.raw
/
Float3
Float3
@
ApiStatus.Internal
class
Float3
:
Record
A three float value (origin, rotation)
Parameters
x
x
y
y
z
z
Members
Constructors
Float3
Link copied to clipboard
constructor
(
value
:
Float
)
Creates floats
Types
Parser
Link copied to clipboard
class
Parser
:
Function
<
T
,
R
>
,
JsonDeserializer
<
T
>
Properties
CENTER
Link copied to clipboard
val
CENTER
:
Float3
Center
PARSER
Link copied to clipboard
val
PARSER
:
Float3.Parser
Parser
ZERO
Link copied to clipboard
val
ZERO
:
Float3
Zero
Functions
convert
To
Minecraft
Degree
Link copied to clipboard
@
NotNull
open
fun
convertToMinecraftDegree
(
)
:
@
NotNull
Float3
Converts zxy euler to xyz euler (Minecraft)
div
Link copied to clipboard
@
NotNull
open
fun
div
(
value
:
Float
)
:
@
NotNull
Float3
Divides floats.
equals
Link copied to clipboard
abstract
fun
equals
(
p
:
Any
)
:
Boolean
hash
Code
Link copied to clipboard
abstract
fun
hashCode
(
)
:
Int
invert
XZ
Link copied to clipboard
@
NotNull
open
fun
invertXZ
(
)
:
@
NotNull
Float3
Inverts XZ
minus
Link copied to clipboard
@
NotNull
open
fun
minus
(
@
NotNull
other
:
@
NotNull
Float3
)
:
@
NotNull
Float3
Subtracts other floats.
plus
Link copied to clipboard
@
NotNull
open
fun
plus
(
@
NotNull
other
:
@
NotNull
Float3
)
:
@
NotNull
Float3
Adds other floats.
rotate
Link copied to clipboard
@
NotNull
open
fun
rotate
(
@
NotNull
quaternionf
:
@
NotNull
Quaternionf
)
:
@
NotNull
Float3
Rotates this float
times
Link copied to clipboard
@
NotNull
open
fun
times
(
value
:
Float
)
:
@
NotNull
Float3
Multiplies floats.
to
Block
Scale
Link copied to clipboard
@
NotNull
open
fun
toBlockScale
(
)
:
@
NotNull
Float3
Converts item model scale to block scale
to
Json
Link copied to clipboard
@
NotNull
open
fun
toJson
(
)
:
@
NotNull
JsonArray
Converts floats to JSON array.
to
String
Link copied to clipboard
@
NotNull
open
fun
toString
(
)
:
@
NotNull
String
to
Vector
Link copied to clipboard
@
NotNull
open
fun
toVector
(
)
:
@
NotNull
Vector3f
Converts floats to vector.