Package ac.boar.anticheat.player.data
Class StaticSeatData
java.lang.Object
ac.boar.anticheat.player.data.StaticSeatData
One acknowledged mount on a static seat: the seat actor, the ground state at mount, and the hold and exit state. StaticSeatExit picks the exit.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanheldThisTick(BoarPlayer player) voidhold(BoarPlayer player) booleanmismatchedThisTick(BoarPlayer player) booleanprepare(BoarPlayer player, org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet) Returns true if the player stays seated for this input.
-
Field Details
-
actor
-
leaveRequested
public boolean leaveRequested -
serverCleared
public boolean serverCleared
-
-
Constructor Details
-
StaticSeatData
-
-
Method Details
-
prepare
public boolean prepare(BoarPlayer player, org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet) Returns true if the player stays seated for this input. Returns false if the seat is dropped. Normal movement then starts from the exit position if one was picked, else from the current position. -
heldThisTick
-
mismatchedThisTick
-
hold
-