Record Class Basis
java.lang.Object
java.lang.Record
mod.chloeprime.aaaparticles.common.util.Basis
public record Basis(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2, net.minecraft.world.phys.Vec3 x, net.minecraft.world.phys.Vec3 y, net.minecraft.world.phys.Vec3 z)
extends Record
-
构造器概要
构造器构造器说明Basis(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2, net.minecraft.world.phys.Vec3 x, net.minecraft.world.phys.Vec3 y, net.minecraft.world.phys.Vec3 z) 创建Basis记录的实例。 -
方法概要
修饰符和类型方法说明final boolean指示某个其他对象是否“等于”此对象。static Basisfactory(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2) static BasisfromBodyRotation(float yRot) static BasisfromEntityBody(net.minecraft.world.entity.Entity entity) static BasisfromEuler(net.minecraft.world.phys.Vec3 euler) static BasisfromVectors(net.minecraft.world.phys.Vec3 x, net.minecraft.world.phys.Vec3 y, net.minecraft.world.phys.Vec3 z) Basis from x, y, z Godot's basis constructorfinal inthashCode()返回此对象的哈希代码值。static Basisnet.minecraft.world.phys.Vec3row0()返回row0记录组件的值。net.minecraft.world.phys.Vec3row1()返回row1记录组件的值。net.minecraft.world.phys.Vec3row2()返回row2记录组件的值。doubletDotX(net.minecraft.world.phys.Vec3 with) doubletDotY(net.minecraft.world.phys.Vec3 with) doubletDotZ(net.minecraft.world.phys.Vec3 with) net.minecraft.world.phys.Vec3toGlobal(net.minecraft.world.phys.Vec3 local) net.minecraft.world.phys.Vec3toLocal(net.minecraft.world.phys.Vec3 global) final StringtoString()返回此记录的字符串表示形式。net.minecraft.world.phys.Vec3x()返回x记录组件的值。net.minecraft.world.phys.Vec3y()返回y记录组件的值。net.minecraft.world.phys.Vec3z()返回z记录组件的值。
-
构造器详细资料
-
Basis
public Basis(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2, net.minecraft.world.phys.Vec3 x, net.minecraft.world.phys.Vec3 y, net.minecraft.world.phys.Vec3 z) 创建Basis记录的实例。- 参数:
row0-row0记录组件的值row1-row1记录组件的值row2-row2记录组件的值x-x记录组件的值y-y记录组件的值z-z记录组件的值
-
-
方法详细资料
-
factory
public static Basis factory(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2) -
fromVectors
public static Basis fromVectors(net.minecraft.world.phys.Vec3 x, net.minecraft.world.phys.Vec3 y, net.minecraft.world.phys.Vec3 z) Basis from x, y, z Godot's basis constructor -
toLocal
public net.minecraft.world.phys.Vec3 toLocal(net.minecraft.world.phys.Vec3 global) -
toGlobal
public net.minecraft.world.phys.Vec3 toGlobal(net.minecraft.world.phys.Vec3 local) -
fromBodyRotation
-
fromEntityBody
-
fromEuler
-
mul
-
tDotX
public double tDotX(net.minecraft.world.phys.Vec3 with) -
tDotY
public double tDotY(net.minecraft.world.phys.Vec3 with) -
tDotZ
public double tDotZ(net.minecraft.world.phys.Vec3 with) -
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
row0
public net.minecraft.world.phys.Vec3 row0()返回row0记录组件的值。- 返回:
row0记录组件的值
-
row1
public net.minecraft.world.phys.Vec3 row1()返回row1记录组件的值。- 返回:
row1记录组件的值
-
row2
public net.minecraft.world.phys.Vec3 row2()返回row2记录组件的值。- 返回:
row2记录组件的值
-
x
public net.minecraft.world.phys.Vec3 x()返回x记录组件的值。- 返回:
x记录组件的值
-
y
public net.minecraft.world.phys.Vec3 y()返回y记录组件的值。- 返回:
y记录组件的值
-
z
public net.minecraft.world.phys.Vec3 z()返回z记录组件的值。- 返回:
z记录组件的值
-