Package ac.boar.anticheat.player.data
Class StaticSeatExit
java.lang.Object
ac.boar.anticheat.player.data.StaticSeatExit
Picks the exit spot in the same order the client does when a static seat ejects its rider. The exit position the client claims is never used.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic org.cloudburstmc.math.vector.Vector3fseatOrigin(StaticSeatTracker.Actor actor, org.cloudburstmc.math.vector.Vector3f offset) static StaticSeatExit.Resultselect(BoarPlayer player, StaticSeatTracker.Actor actor) Null means Boar cannot pick the exit: a block or block read is unknown, or the case is outside this model (a non-finite seat or box, a box width or height of 0 or less, a height above 8, a seat actor with |x| or |z| above 30,000,000 or near the world's min or max Y).
-
Method Details
-
seatOrigin
public static org.cloudburstmc.math.vector.Vector3f seatOrigin(StaticSeatTracker.Actor actor, org.cloudburstmc.math.vector.Vector3f offset) -
select
Null means Boar cannot pick the exit: a block or block read is unknown, or the case is outside this model (a non-finite seat or box, a box width or height of 0 or less, a height above 8, a seat actor with |x| or |z| above 30,000,000 or near the world's min or max Y). The fallback is returned only after all 24 candidates are known to fail.
-