Package ac.boar.anticheat.player
Class BoarPlayer
java.lang.Object
ac.boar.anticheat.player.data.PlayerData
ac.boar.anticheat.player.BoarPlayer
-
Field Summary
FieldsModifier and TypeFieldDescriptionlonglongfinal BlockPlacementTrackerorg.cloudburstmc.math.vector.Vector3ifinal CompensatedInventoryfinal CompensatedWorldImplfinal HorseJumpInputlonglonglongorg.cloudburstmc.math.vector.Vector3ffinal ItemTransactionValidatorlongFields inherited from class ac.boar.anticheat.player.data.PlayerData
abilities, ackDebugUntilTick, afterCollision, attributes, autoSpinAttackTicks, bedPosition, beforeCollision, bestPossibility, boundingBox, certainVelocity, clientMotion, clientNeedsMovementSpeedAttributeUpdate, clientSprintIntent, correctionAttributesPacket, correctionMetadataPacket, currentLoadingScreen, dead, depenetrationState, desyncedFlag, dimensions, dirtyRiptide, dirtySpinStop, doingInventoryAction, edgeBackedOffX, edgeBackedOffZ, fallDistance, fluidHeight, gameType, glideBoostTicks, GRAVITY, headInWater, headSampleOffsetY, horizontalCollision, hunger, inBlockState, inLoadingScreen, input, inputMode, insideUnloadedChunk, interactionModel, interactRotation, JUMP_HEIGHT, lastCollisionRetryTick, lastItemUseStateChangeTick, lastMovementAttribute, lastServerFlags, lastTickFinalVelocity, loadingScreenStartMs, mappingInfo, nativeOriginY, onGround, pendingDimensionSwitches, pitch, position, predictionResult, prevInteractRotation, prevInteractRotUnchanged, previousVanillaOffsetY, prevPitch, prevPosition, prevUnvalidatedPosition, prevUnvalidatedTickEnd, prevUsingItemFlag, prevYaw, riptideItem, rotation, scaffoldDescend, selectedFluid, serverClearedSprint, serverClearedSprintTick, simulationFrame, sinceAuthInput, sinceLoadingScreen, sinceTridentUse, sneakingAttributeModifier, sneakingEyeHeightReduction, SPRINTING_SPEED_BOOST, staticSeat, staticSeatTracker, STEP_HEIGHT, stuckSpeedMultiplier, swimAmount, thisTickSpinAttack, tick, ticksSinceCanSlowdown, ticksSinceCrawling, touchingWater, unvalidatedNativeOriginY, unvalidatedPosition, unvalidatedTickEnd, vanillaOffsetY, vehicleData, velocity, verticalCollision, yaw -
Constructor Summary
ConstructorsConstructorDescriptionBoarPlayer(ac.boar.api.anticheat.model.NetworkSession session, BoarConnection connection, Entity entity, BlockMappingInfo mappingInfo, WorldAccessor worldAccessor, EntityAccessor entityAccessor, InventoryAccessor inventoryAccessor, Map<String, AttributeInstance> defaultAttributes, boolean disableMitigations) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsFluid(Box box) booleanvoidbooleandoesNotCollide(float offsetX, float offsetY, float offsetZ) floatorg.cloudburstmc.math.vector.Vector3ifloatgetFrictionInfluencedSpeed(float slipperiness) floatfloatorg.cloudburstmc.math.vector.Vector3igetOnPos(float offset) floatfloatvoidinjectClientPacket(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet) Replay a Bedrock packet inbound as if the client had just sent it.booleanisClosed()booleanbooleanbooleanisPlayerEntity(long uniqueId) booleanvoidbooleanvoidpostTick()voidRegister an acknowledgment to ride the next outbound bedrock batch's injected NSL.voidEmit a keepalive ping (no acknowledgment).voidRegister an acknowledgment to be associated with the current Bedrock batch.voidvoidtick()voidtickDriverSwitch(EntityCache cache) voidMethods inherited from class ac.boar.anticheat.player.data.PlayerData
clearMovementForImmobileInput, cloneAttributes, fromRawBlockId, getEffect, getEffectiveGravity, getEffectiveGravity, getFluidHeight, getPosAcceptanceLimit, getPosAcceptanceThreshold, getPositionUlp, getSpeed, hasEffect, isInLava, setBoundingBox, setDimensions, setDirtyRiptide, setPos, setSprinting, stopRiptide
-
Field Details
-
runtimeEntityId
public long runtimeEntityId -
uniqueEntityId
public long uniqueEntityId -
acceptedInputCount
public long acceptedInputCount -
acceptedInputEpoch
public long acceptedInputEpoch -
lastAcceptedBoatTakeoverInput
public long lastAcceptedBoatTakeoverInput -
horseJumpInput
-
listedPlayers
-
inputArrivalNs
public long inputArrivalNs -
followerArrivalClock
-
seatOffset
public org.cloudburstmc.math.vector.Vector3f seatOffset -
compensatedWorld
-
blockPlacements
-
compensatedInventory
-
serverBreakBlockValidator
-
transactionValidator
-
future
-
cachedOnPos
public org.cloudburstmc.math.vector.Vector3i cachedOnPos
-
-
Constructor Details
-
BoarPlayer
public BoarPlayer(ac.boar.api.anticheat.model.NetworkSession session, BoarConnection connection, Entity entity, BlockMappingInfo mappingInfo, WorldAccessor worldAccessor, EntityAccessor entityAccessor, InventoryAccessor inventoryAccessor, Map<String, AttributeInstance> defaultAttributes, boolean disableMitigations)
-
-
Method Details
-
isPlayerEntity
public boolean isPlayerEntity(long uniqueId) -
isClosed
public boolean isClosed() -
sendLatencyStack
Register an acknowledgment to be associated with the current Bedrock batch. -
sendLatencyStack
public void sendLatencyStack()Emit a keepalive ping (no acknowledgment). Used byserverTickfor liveness detection when the server is idle and not sending packets -
queueAcknowledgment
Register an acknowledgment to ride the next outbound bedrock batch's injected NSL. Identical semantics tosendLatencyStack(Acknowledgment)under the default batched transport. -
dispatchAcknowledgment
-
injectClientPacket
public void injectClientPacket(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet) Replay a Bedrock packet inbound as if the client had just sent it. Used to forward an attack (or any other inbound packet) that was previously cancelled by a check. The synthetic packet skips Boar's listener chain on its way downstream, so the caller is responsible for any prior listener-side processing. -
isImmobile
public boolean isImmobile() -
isMovementExempted
public boolean isMovementExempted() -
disableMitigations
public boolean disableMitigations() -
kick
-
tick
public void tick() -
tickFollowerHistories
public void tickFollowerHistories() -
tickDriverSwitch
-
postTick
public void postTick() -
setPos
- Overrides:
setPosin classPlayerData
-
getYOffset
public float getYOffset() -
getPlayerYOffset
public float getPlayerYOffset() -
getFrictionInfluencedSpeed
public float getFrictionInfluencedSpeed(float slipperiness) -
getInBlockState
-
onClimbable
public boolean onClimbable() -
getJumpPower
public float getJumpPower() -
getJumpBoostPower
public float getJumpBoostPower() -
jump
-
getBlockJumpFactor
public float getBlockJumpFactor() -
getBlockPosBelowThatAffectsMyMovement
public org.cloudburstmc.math.vector.Vector3i getBlockPosBelowThatAffectsMyMovement() -
getOnPos
public org.cloudburstmc.math.vector.Vector3i getOnPos(float offset) -
isRegionUnloaded
public boolean isRegionUnloaded() -
containsFluid
-
doesNotCollide
public boolean doesNotCollide(float offsetX, float offsetY, float offsetZ)
-