Class VehicleData

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

public class VehicleData extends Object
  • Field Details

    • vehicleRuntimeId

      public long vehicleRuntimeId
    • vehicleUniqueId

      public long vehicleUniqueId
    • mountedEntity

      public EntityCache mountedEntity
    • horseForcedMove

      public VehicleData.HorseForcedMove horseForcedMove
    • horseForcedCompletionSeen

      public boolean horseForcedCompletionSeen
    • type

      public VehicleType type
    • driver

      public boolean driver
    • boatTakeover

      public BoatTakeoverTransition boatTakeover
    • pendingLeave

      public boolean pendingLeave
    • pendingLeaveNs

      public long pendingLeaveNs
    • localExitDecided

      public boolean localExitDecided
    • inputClaimsClientPrediction

      public boolean inputClaimsClientPrediction
    • horseDeathInputSeen

      public boolean horseDeathInputSeen
    • horseDeathAuthorized

      public boolean horseDeathAuthorized
    • horseDeathDecided

      public boolean horseDeathDecided
    • FOLLOWER_DEATH_EXIT_INPUTS

      public static final int FOLLOWER_DEATH_EXIT_INPUTS
      See Also:
    • followerDeathAuthorized

      public boolean followerDeathAuthorized
    • followerDeathDecided

      public boolean followerDeathDecided
    • followerDeathDeadline

      public long followerDeathDeadline
    • followerDeathPosition

      public Vec3 followerDeathPosition
    • followerDeathPositionChanged

      public boolean followerDeathPositionChanged
    • predictedVehicleUniqueId

      public long predictedVehicleUniqueId
    • vehicleRotationPresent

      public boolean vehicleRotationPresent
    • awaitingBoatFormatInput

      public boolean awaitingBoatFormatInput
    • riderCoordinates

      public boolean riderCoordinates
    • invalidVehicleInput

      public boolean invalidVehicleInput
    • boatActorState

      public VehicleData.BoatActorState boatActorState
    • firstControlRenderPose

      public VehicleData.BoatRenderPose firstControlRenderPose
    • vehicleRotation

      public org.cloudburstmc.math.vector.Vector2f vehicleRotation
    • position

      public Vec3 position
    • prevPosition

      public Vec3 prevPosition
    • box

      public Box box
    • onGround

      public boolean onGround
    • interactionModel

      public org.cloudburstmc.protocol.bedrock.data.InputInteractionModel interactionModel
    • motion

      public org.cloudburstmc.math.vector.Vector2f motion
    • up

      public boolean up
    • paddleLeft

      public boolean paddleLeft
    • paddleRight

      public boolean paddleRight
    • jumping

      public boolean jumping
    • prevJumping

      public boolean prevJumping
    • parkedTeleport

      public TeleportData parkedTeleport
    • heldTeleportHandled

      public boolean heldTeleportHandled
    • preDriverSwitchTeleport

      public TeleportData preDriverSwitchTeleport
    • mountTick

      public long mountTick
    • horseJumping

      public boolean horseJumping
    • horsePendingScale

      public float horsePendingScale
    • horseJumpKnown

      public boolean horseJumpKnown
    • horseStanding

      public Boolean horseStanding
    • horseStandSliding

      public Boolean horseStandSliding
    • horseMountWindow

      public VehicleData.HorseMountWindow horseMountWindow
    • horseMountStart

      public Vec3 horseMountStart
    • horseGroundFromTravel

      public boolean horseGroundFromTravel
    • pendingSlidingClear

      public boolean pendingSlidingClear
    • lastKnownEntity

      public EntityCache lastKnownEntity
    • needsVehicleRestart

      public boolean needsVehicleRestart
    • motionOverride

      public Vec3 motionOverride
    • serverMotionActive

      public boolean serverMotionActive
    • clientSimulatesRide

      public boolean clientSimulatesRide
    • ticks

      public int ticks
    • stillTicks

      public int stillTicks
    • yaw

      public float yaw
    • yawVelocity

      public float yawVelocity
    • pitch

      public float pitch
    • firstPaddle

      public final VehicleData.Paddle firstPaddle
    • secondPaddle

      public final VehicleData.Paddle secondPaddle
    • paddleTick

      public int paddleTick
    • slowdown

      public Vec3 slowdown
  • Constructor Details

    • VehicleData

      public VehicleData()
  • Method Details

    • matchesForcedHorseEntity

      public boolean matchesForcedHorseEntity(EntityCache entity)
    • matchesMountedEntity

      public boolean matchesMountedEntity(EntityCache entity)
    • isMountedEntity

      public boolean isMountedEntity(EntityCache entity)
    • isLiveMount

      public boolean isLiveMount(BoarPlayer player, EntityCache entity)
    • isFirstPassengerOfBoat

      public static boolean isFirstPassengerOfBoat(BoarPlayer player, VehicleData ride, EntityCache boat)
    • invalidateJumpInputUnlessLeaving

      public void invalidateJumpInputUnlessLeaving(BoarPlayer player)
    • isHorseDeathExitMount

      public boolean isHorseDeathExitMount(BoarPlayer player, EntityCache entity)
    • beginMatchedClaimAttempt

      public void beginMatchedClaimAttempt()
    • invalidateMatchedClaim

      public void invalidateMatchedClaim(long throughTick)
    • markHorsePhysicsOutcome

      public void markHorsePhysicsOutcome(BoarPlayer player, EntityCache entity)
    • acceptMatchedClaim

      public void acceptMatchedClaim(BoarPlayer player, org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, float rawOffset, boolean ordinaryAcceptance)
    • freezeFollowerDeathClaim

      public void freezeFollowerDeathClaim(BoarPlayer player, EntityCache entity, boolean firstAck)
    • guardedStationaryCamelExit

      public VehicleData.StationaryCamelExit guardedStationaryCamelExit(BoarPlayer player, EntityCache entity)
    • guardedFollowerDeathPosition

      public Vec3 guardedFollowerDeathPosition(BoarPlayer player, EntityCache entity)
    • isFollowerDeathExitMount

      public boolean isFollowerDeathExitMount(BoarPlayer player, EntityCache entity)
    • canEndFollowerDeath

      public boolean canEndFollowerDeath(BoarPlayer player, EntityCache entity)
    • declineFollowerDeath

      public void declineFollowerDeath(BoarPlayer player, String reason)
    • logFollowerDeath

      public void logFollowerDeath(BoarPlayer player, String detail)
    • canEndHorseDeath

      public boolean canEndHorseDeath(BoarPlayer player, EntityCache entity)
    • logHorseDeath

      public void logHorseDeath(BoarPlayer player, String detail)
    • armDriverSwitchTick

      public void armDriverSwitchTick(boolean available)
    • useDriverSwitchTick

      public boolean useDriverSwitchTick(long inputTick)
    • isDriverSwitchRiderTick

      public boolean isDriverSwitchRiderTick(long inputTick)
    • finishSlidingClear

      public void finishSlidingClear(boolean accepted)
    • invalidateHorseStand

      public void invalidateHorseStand()
    • invalidateHorseJump

      public void invalidateHorseJump()
    • horseLanded

      public void horseLanded()
      Call only after the simulation proves the native ground flag went from FALSE to TRUE.
    • moveTo

      public void moveTo(Vec3 position)
    • setActorBox

      public void setActorBox(Box box, EntityDimensions dimensions)
    • boxAt

      public Box boxAt(Vec3 position, EntityDimensions dimensions)
    • boxPosition

      public static Vec3 boxPosition(Box box)
    • updateFromInput

      public void updateFromInput(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet)