Virtual stick cursor steered through the gun reticle, server-side virtual pilot using measured control responses, client cursor/camera handling with look-ahead, free look and scroll zoom. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVREx3uo7nz1FEhzveWTUh
16 lines
471 B
Java
16 lines
471 B
Java
package dev.lumareth.improvedAerodynamics.client.aim;
|
|
|
|
import net.mcreator.valkyrienwarium.entity.SeatEntityEntity;
|
|
import net.minecraft.world.entity.Entity;
|
|
|
|
/** Everything that touches Warium VS classes, so nothing else loads them when Warium is missing. */
|
|
final class AimSeat {
|
|
private AimSeat() {
|
|
}
|
|
|
|
static Entity seatOf(Entity rider) {
|
|
Entity root = rider.getRootVehicle();
|
|
return root instanceof SeatEntityEntity ? root : null;
|
|
}
|
|
}
|