记录类 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 Basis
    factory(net.minecraft.world.phys.Vec3 row0, net.minecraft.world.phys.Vec3 row1, net.minecraft.world.phys.Vec3 row2)
     
    static Basis
    fromBodyRotation(float yRot)
     
    static Basis
    fromEntityBody(net.minecraft.world.entity.Entity entity)
     
    static Basis
    fromEuler(net.minecraft.world.phys.Vec3 euler)
     
    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
    final int
    返回此对象的哈希代码值。
    static Basis
    mul(Basis left, Basis right)
     
    net.minecraft.world.phys.Vec3
    返回 row0 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 row1 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 row2 记录组件的值。
    double
    tDotX(net.minecraft.world.phys.Vec3 with)
     
    double
    tDotY(net.minecraft.world.phys.Vec3 with)
     
    double
    tDotZ(net.minecraft.world.phys.Vec3 with)
     
    net.minecraft.world.phys.Vec3
    toGlobal(net.minecraft.world.phys.Vec3 local)
     
    net.minecraft.world.phys.Vec3
    toLocal(net.minecraft.world.phys.Vec3 global)
     
    final String
    返回此记录类的字符串表示形式。
    net.minecraft.world.phys.Vec3
    x()
    返回 x 记录组件的值。
    net.minecraft.world.phys.Vec3
    y()
    返回 y 记录组件的值。
    net.minecraft.world.phys.Vec3
    z()
    返回 z 记录组件的值。

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • 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

      public static Basis fromBodyRotation(float yRot)
    • fromEntityBody

      public static Basis fromEntityBody(net.minecraft.world.entity.Entity entity)
    • fromEuler

      public static Basis fromEuler(net.minecraft.world.phys.Vec3 euler)
    • mul

      public static Basis mul(Basis left, Basis right)
    • 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

      public final String toString()
      返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用 Objects::equals(Object,Object) 进行比较。
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • 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 记录组件的值