Class StaticSeatData

java.lang.Object
ac.boar.anticheat.player.data.StaticSeatData

public final class StaticSeatData extends Object
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 Details

    • actor

      public final StaticSeatTracker.Actor actor
    • leaveRequested

      public boolean leaveRequested
    • serverCleared

      public boolean serverCleared
  • Constructor Details

  • 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

      public boolean heldThisTick(BoarPlayer player)
    • mismatchedThisTick

      public boolean mismatchedThisTick(BoarPlayer player)
    • hold

      public void hold(BoarPlayer player)