Package ac.boar.anticheat.player.data
Class VehicleData
java.lang.Object
ac.boar.anticheat.player.data.VehicleData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic enumstatic final classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanfinal VehicleData.Paddlestatic final intbooleanlongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanfloatbooleanorg.cloudburstmc.protocol.bedrock.data.InputInteractionModelbooleanbooleanbooleanorg.cloudburstmc.math.vector.Vector2flongbooleanbooleanbooleanbooleanintbooleanlongbooleanfloatlongbooleanbooleanfinal VehicleData.Paddlebooleanintintbooleanorg.cloudburstmc.math.vector.Vector2fbooleanlonglongfloatfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptMatchedClaim(BoarPlayer player, org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, float rawOffset, boolean ordinaryAcceptance) voidarmDriverSwitchTick(boolean available) voidboxAt(Vec3 position, EntityDimensions dimensions) static Vec3boxPosition(Box box) booleancanEndFollowerDeath(BoarPlayer player, EntityCache entity) booleancanEndHorseDeath(BoarPlayer player, EntityCache entity) voiddeclineFollowerDeath(BoarPlayer player, String reason) voidfinishSlidingClear(boolean accepted) voidfreezeFollowerDeathClaim(BoarPlayer player, EntityCache entity, boolean firstAck) guardedFollowerDeathPosition(BoarPlayer player, EntityCache entity) guardedStationaryCamelExit(BoarPlayer player, EntityCache entity) voidCall only after the simulation proves the native ground flag went from FALSE to TRUE.voidvoidvoidvoidinvalidateMatchedClaim(long throughTick) booleanisDriverSwitchRiderTick(long inputTick) static booleanisFirstPassengerOfBoat(BoarPlayer player, VehicleData ride, EntityCache boat) booleanisFollowerDeathExitMount(BoarPlayer player, EntityCache entity) booleanisHorseDeathExitMount(BoarPlayer player, EntityCache entity) booleanisLiveMount(BoarPlayer player, EntityCache entity) booleanisMountedEntity(EntityCache entity) voidlogFollowerDeath(BoarPlayer player, String detail) voidlogHorseDeath(BoarPlayer player, String detail) voidmarkHorsePhysicsOutcome(BoarPlayer player, EntityCache entity) booleanmatchesForcedHorseEntity(EntityCache entity) booleanmatchesMountedEntity(EntityCache entity) voidvoidsetActorBox(Box box, EntityDimensions dimensions) voidupdateFromInput(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet) booleanuseDriverSwitchTick(long inputTick)
-
Field Details
-
vehicleRuntimeId
public long vehicleRuntimeId -
vehicleUniqueId
public long vehicleUniqueId -
mountedEntity
-
horseForcedMove
-
horseForcedCompletionSeen
public boolean horseForcedCompletionSeen -
type
-
driver
public boolean driver -
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
-
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
-
firstControlRenderPose
-
vehicleRotation
public org.cloudburstmc.math.vector.Vector2f vehicleRotation -
position
-
prevPosition
-
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
-
heldTeleportHandled
public boolean heldTeleportHandled -
preDriverSwitchTeleport
-
mountTick
public long mountTick -
horseJumping
public boolean horseJumping -
horsePendingScale
public float horsePendingScale -
horseJumpKnown
public boolean horseJumpKnown -
horseStanding
-
horseStandSliding
-
horseMountWindow
-
horseMountStart
-
horseGroundFromTravel
public boolean horseGroundFromTravel -
pendingSlidingClear
public boolean pendingSlidingClear -
lastKnownEntity
-
needsVehicleRestart
public boolean needsVehicleRestart -
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
-
secondPaddle
-
paddleTick
public int paddleTick -
slowdown
-
-
Constructor Details
-
VehicleData
public VehicleData()
-
-
Method Details
-
matchesForcedHorseEntity
-
matchesMountedEntity
-
isMountedEntity
-
isLiveMount
-
isFirstPassengerOfBoat
-
invalidateJumpInputUnlessLeaving
-
isHorseDeathExitMount
-
beginMatchedClaimAttempt
public void beginMatchedClaimAttempt() -
invalidateMatchedClaim
public void invalidateMatchedClaim(long throughTick) -
markHorsePhysicsOutcome
-
acceptMatchedClaim
public void acceptMatchedClaim(BoarPlayer player, org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet, float rawOffset, boolean ordinaryAcceptance) -
freezeFollowerDeathClaim
-
guardedStationaryCamelExit
public VehicleData.StationaryCamelExit guardedStationaryCamelExit(BoarPlayer player, EntityCache entity) -
guardedFollowerDeathPosition
-
isFollowerDeathExitMount
-
canEndFollowerDeath
-
declineFollowerDeath
-
logFollowerDeath
-
canEndHorseDeath
-
logHorseDeath
-
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
-
setActorBox
-
boxAt
-
boxPosition
-
updateFromInput
public void updateFromInput(org.cloudburstmc.protocol.bedrock.packet.PlayerAuthInputPacket packet)
-