TrajectoryInfoRenderer

class TrajectoryInfoRenderer(val owner: Entity, val icon: ItemStack, velocity: Vec3, pos: Vec3, val trajectoryInfo: TrajectoryInfo, val trajectoryType: TrajectoryType, val type: TrajectoryInfoRenderer.Type, renderOffset: Vec3)

Constructors

Link copied to clipboard
constructor(owner: Entity, icon: ItemStack, velocity: Vec3, pos: Vec3, trajectoryInfo: TrajectoryInfo, trajectoryType: TrajectoryType, type: TrajectoryInfoRenderer.Type, renderOffset: Vec3)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class SimulationResult(val hitResult: HitResult?, val positions: List<Vec3>) : Record
Link copied to clipboard

Properties

Link copied to clipboard
val icon: ItemStack
Link copied to clipboard
val owner: Entity
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Only used for rendering. No effect on simulation.

Functions

Link copied to clipboard
context(env: WorldRenderEnvironment)
fun drawTrajectoryForProjectile(maxTicks: Int, partialTicks: Float, trajectoryColor: Color4b, blockHitColor: Color4b?, entityHitColor: Color4b?): TrajectoryInfoRenderer.SimulationResult
Link copied to clipboard