Class TrailPoint
java.lang.Object
team.lodestar.lodestone.systems.rendering.trail.TrailPoint
- Direct Known Subclasses:
InterpolatedTrailPoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected net.minecraft.world.phys.Vec3protected net.minecraft.world.phys.Vec3 -
Constructor Summary
ConstructorsConstructorDescriptionTrailPoint(net.minecraft.world.phys.Vec3 position) TrailPoint(net.minecraft.world.phys.Vec3 position, int age) -
Method Summary
Modifier and TypeMethodDescriptionintgetAge()org.joml.Vector4fgetInterpolatedMatrixPosition(org.joml.Matrix4f pose, float partialTicks) net.minecraft.world.phys.Vec3getInterpolatedPosition(float partialTicks) static org.joml.Vector4fgetMatrixPosition(net.minecraft.world.phys.Vec3 position, org.joml.Matrix4f pose) org.joml.Vector4fgetMatrixPosition(org.joml.Matrix4f pose) net.minecraft.world.phys.Vec3voidmove(net.minecraft.world.phys.Vec3 offset) voidsetPosition(net.minecraft.world.phys.Vec3 position) voidtick()
-
Field Details
-
oldPosition
protected net.minecraft.world.phys.Vec3 oldPosition -
position
protected net.minecraft.world.phys.Vec3 position -
age
protected int age
-
-
Constructor Details
-
TrailPoint
public TrailPoint(net.minecraft.world.phys.Vec3 position, int age) -
TrailPoint
public TrailPoint(net.minecraft.world.phys.Vec3 position)
-
-
Method Details
-
getMatrixPosition
public org.joml.Vector4f getMatrixPosition(org.joml.Matrix4f pose) -
getInterpolatedMatrixPosition
public org.joml.Vector4f getInterpolatedMatrixPosition(org.joml.Matrix4f pose, float partialTicks) -
getPosition
public net.minecraft.world.phys.Vec3 getPosition() -
getInterpolatedPosition
public net.minecraft.world.phys.Vec3 getInterpolatedPosition(float partialTicks) -
setPosition
public void setPosition(net.minecraft.world.phys.Vec3 position) -
move
public void move(net.minecraft.world.phys.Vec3 offset) -
getAge
public int getAge() -
tick
public void tick() -
getMatrixPosition
public static org.joml.Vector4f getMatrixPosition(net.minecraft.world.phys.Vec3 position, org.joml.Matrix4f pose)
-