TrajectoryInfoRenderer

class TrajectoryInfoRenderer(val simulationOwner: Entity, val displayOwner: 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(simulationOwner: Entity, displayOwner: 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 displayOwner: Entity?

Entity displayed as the projectile owner in UI.

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

Entity used by the simulation as the projectile source.

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?, lineWidth: Float = 1.0f): TrajectoryInfoRenderer.SimulationResult
Link copied to clipboard