类 SuperLeashStateResolver

java.lang.Object
top.r3944realms.superleadrope.client.renderer.resolver.SuperLeashStateResolver

public class SuperLeashStateResolver extends Object
The type Super leash state resolver.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static @NotNull net.minecraft.world.phys.Vec3
    applyOffsetWithRotation(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 localOffset, float partialTicks)
    将局部偏移向量应用到实体旋转,返回世界坐标位置
    static net.minecraft.world.phys.Vec3
    getEntityLeashHolderPos(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 baseOffset, float partialTicks)
    获取实体挂点位置,支持旋转偏移
    resolve(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity leashedEntity, LeashInfo leashInfo, float partialTicks)
    Resolve optional.

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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • SuperLeashStateResolver

      public SuperLeashStateResolver()
  • 方法详细资料

    • resolve

      public static Optional<SuperLeashRenderState> resolve(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity leashedEntity, LeashInfo leashInfo, float partialTicks)
      Resolve optional.
      参数:
      holder - the holder
      leashedEntity - the leashed entity
      leashInfo - the leash info
      partialTicks - the partial ticks
      返回:
      the optional
    • applyOffsetWithRotation

      @NotNull public static @NotNull net.minecraft.world.phys.Vec3 applyOffsetWithRotation(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 localOffset, float partialTicks)
      将局部偏移向量应用到实体旋转,返回世界坐标位置
      参数:
      entity - 实体
      localOffset - 局部偏移(相对于实体局部坐标系)
      partialTicks - 插值参数
      返回:
      偏移旋转后的世界坐标位置 vec 3
    • getEntityLeashHolderPos

      public static net.minecraft.world.phys.Vec3 getEntityLeashHolderPos(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 baseOffset, float partialTicks)
      获取实体挂点位置,支持旋转偏移
      参数:
      entity - the entity
      baseOffset - the base offset
      partialTicks - the partial ticks
      返回:
      the entity leash holder pos