类 SuperLeashStateResolver
java.lang.Object
top.r3944realms.superleadrope.client.renderer.resolver.SuperLeashStateResolver
The type Super leash state resolver.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static @NotNull net.minecraft.world.phys.Vec3applyOffsetWithRotation(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 localOffset, float partialTicks) 将局部偏移向量应用到实体旋转,返回世界坐标位置static net.minecraft.world.phys.Vec3getEntityLeashHolderPos(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 baseOffset, float partialTicks) 获取实体挂点位置,支持旋转偏移static Optional<SuperLeashRenderState>resolve(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity leashedEntity, LeashInfo leashInfo, float partialTicks) Resolve optional.
-
构造器详细资料
-
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 holderleashedEntity- the leashed entityleashInfo- the leash infopartialTicks- 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 entitybaseOffset- the base offsetpartialTicks- the partial ticks- 返回:
- the entity leash holder pos
-