Record Class SuperLeashRenderState

java.lang.Object
java.lang.Record
top.r3944realms.superleadrope.client.renderer.state.SuperLeashRenderState

public record SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos) extends Record
The type Super leash render state.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    The constant COLOR_CRITICAL.
    static final int
    The constant COLOR_NORMAL.
    static final int
    The constant COLOR_TENSION.
  • 构造器概要

    构造器
    构造器
    说明
    SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos)
    创建 SuperLeashRenderState 记录的实例。
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.core.BlockPos
    返回 belowBlockPos 记录组件的值。
    int
    返回 color 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 endPos 记录组件的值。
    final boolean
    指示某个其他对象是否“等于”此对象。
    net.minecraft.world.phys.Vec3
    getSwingOffset(float progress, float partialTicks)
    计算当前帧的摆动偏移量(用于波浪效果)
    final int
    返回此对象的哈希代码值。
    boolean
    返回 isCritical 记录组件的值。
    boolean
    返回 isFirstPerson 记录组件的值。
    int
    返回 keepLeashTicks 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 lastEndPos 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 lastStartPos 记录组件的值。
    返回 maxDistance 记录组件的值。
    net.minecraft.world.phys.Vec3
    返回 startPos 记录组件的值。
    float
    返回 stretchRatio 记录组件的值。
    float
    返回 swingAngle 记录组件的值。
    float
    返回 swingSpeed 记录组件的值。
    float
    返回 tension 记录组件的值。
    float
    返回 thickness 记录组件的值。
    final String
    返回此记录的字符串表示形式。

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

    getClass, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • COLOR_NORMAL

      public static final int COLOR_NORMAL
      The constant COLOR_NORMAL.
      另请参阅:
    • COLOR_TENSION

      public static final int COLOR_TENSION
      The constant COLOR_TENSION.
      另请参阅:
    • COLOR_CRITICAL

      public static final int COLOR_CRITICAL
      The constant COLOR_CRITICAL.
      另请参阅:
  • 构造器详细资料

    • SuperLeashRenderState

      public SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos)
      创建 SuperLeashRenderState 记录的实例。
      参数:
      startPos - startPos 记录组件的值
      endPos - endPos 记录组件的值
      lastStartPos - lastStartPos 记录组件的值
      lastEndPos - lastEndPos 记录组件的值
      tension - tension 记录组件的值
      stretchRatio - stretchRatio 记录组件的值
      isCritical - isCritical 记录组件的值
      keepLeashTicks - keepLeashTicks 记录组件的值
      color - color 记录组件的值
      thickness - thickness 记录组件的值
      swingAngle - swingAngle 记录组件的值
      swingSpeed - swingSpeed 记录组件的值
      maxDistance - maxDistance 记录组件的值
      isFirstPerson - isFirstPerson 记录组件的值
      belowBlockPos - belowBlockPos 记录组件的值
  • 方法详细资料

    • getSwingOffset

      public net.minecraft.world.phys.Vec3 getSwingOffset(float progress, float partialTicks)
      计算当前帧的摆动偏移量(用于波浪效果)
      参数:
      progress - 沿绳子的进度(0.0-1.0)
      partialTicks - 部分tick时间
      返回:
      垂直于绳子方向的偏移向量 swing offset
    • 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
    • startPos

      public net.minecraft.world.phys.Vec3 startPos()
      返回 startPos 记录组件的值。
      返回:
      startPos 记录组件的值
    • endPos

      public net.minecraft.world.phys.Vec3 endPos()
      返回 endPos 记录组件的值。
      返回:
      endPos 记录组件的值
    • lastStartPos

      public net.minecraft.world.phys.Vec3 lastStartPos()
      返回 lastStartPos 记录组件的值。
      返回:
      lastStartPos 记录组件的值
    • lastEndPos

      public net.minecraft.world.phys.Vec3 lastEndPos()
      返回 lastEndPos 记录组件的值。
      返回:
      lastEndPos 记录组件的值
    • tension

      public float tension()
      返回 tension 记录组件的值。
      返回:
      tension 记录组件的值
    • stretchRatio

      public float stretchRatio()
      返回 stretchRatio 记录组件的值。
      返回:
      stretchRatio 记录组件的值
    • isCritical

      public boolean isCritical()
      返回 isCritical 记录组件的值。
      返回:
      isCritical 记录组件的值
    • keepLeashTicks

      public int keepLeashTicks()
      返回 keepLeashTicks 记录组件的值。
      返回:
      keepLeashTicks 记录组件的值
    • color

      public int color()
      返回 color 记录组件的值。
      返回:
      color 记录组件的值
    • thickness

      public float thickness()
      返回 thickness 记录组件的值。
      返回:
      thickness 记录组件的值
    • swingAngle

      public float swingAngle()
      返回 swingAngle 记录组件的值。
      返回:
      swingAngle 记录组件的值
    • swingSpeed

      public float swingSpeed()
      返回 swingSpeed 记录组件的值。
      返回:
      swingSpeed 记录组件的值
    • maxDistance

      public Double maxDistance()
      返回 maxDistance 记录组件的值。
      返回:
      maxDistance 记录组件的值
    • isFirstPerson

      public boolean isFirstPerson()
      返回 isFirstPerson 记录组件的值。
      返回:
      isFirstPerson 记录组件的值
    • belowBlockPos

      public net.minecraft.core.BlockPos belowBlockPos()
      返回 belowBlockPos 记录组件的值。
      返回:
      belowBlockPos 记录组件的值