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 TypeFieldDescriptionorg.cloudburstmc.math.vector.Vector3ifinal CompensatedInventoryfinal CompensatedWorldImpllongfinal ItemTransactionValidatorFields inherited from class ac.boar.anticheat.player.data.PlayerData
abilities, afterCollision, attributes, autoSpinAttackTicks, bedPosition, beforeCollision, beingPushByLava, bestPossibility, bounce, boundingBox, certainVelocity, clientMotion, clientNeedsMovementSpeedAttributeUpdate, currentLoadingScreen, dead, desyncedFlag, dimensions, dirtyRiptide, dirtySpinStop, doingInventoryAction, fallDistance, fluidHeight, gameType, glideBoostTicks, GRAVITY, hasDepthStrider, horizontalCollision, inBlockState, inLoadingScreen, input, inputMode, insideUnloadedChunk, interactionModel, interactRotation, JUMP_HEIGHT, lastItemUseStateChangeTick, lastTickFinalVelocity, mappingInfo, minBounceYVel, nearBamboo, nearDripstone, onGround, pendingDimensionSwitches, penetratedLastFrame, pitch, position, predictionResult, prevInteractRotation, prevInteractRotUnchanged, prevPitch, prevPosition, prevUnvalidatedPosition, prevUsingItemFlag, prevYaw, riptideItem, rotation, scaffoldDescend, sinceAuthInput, sinceLoadingScreen, sinceTridentUse, sneakingAttributeModifier, soulSandBelow, SPRINTING_SPEED_BOOST, STEP_HEIGHT, stuckInCollider, stuckSpeedMultiplier, thisTickOnGroundSpinAttack, thisTickSpinAttack, tick, tickSinceBlockResync, ticksSinceCanSlowdown, ticksSinceCrawling, ticksSinceSwimming, touchingWater, unvalidatedPosition, unvalidatedTickEnd, 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) floatvoidinjectClientPacket(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet) Replay a Bedrock packet inbound as if the client had just sent it.booleanisClosed()booleanbooleanvoidbooleanvoidpostTick()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.voidtick()Methods inherited from class ac.boar.anticheat.player.data.PlayerData
cloneAttributes, fromRawBlockId, getEffect, getEffectiveGravity, getEffectiveGravity, getFluidHeight, getPosAcceptanceThreshold, getSpeed, hasEffect, isInLava, setBoundingBox, setDirtyRiptide, setPos, setPos, setSprinting, stopRiptide
-
Field Details
-
runtimeEntityId
public long runtimeEntityId -
compensatedWorld
-
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
-
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. -
isMovementExempted
public boolean isMovementExempted() -
disableMitigations
public boolean disableMitigations() -
kick
-
tick
public void tick() -
postTick
public void postTick() -
getYOffset
public float getYOffset() -
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)
-