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, currentLoadingScreen, desyncedFlag, dimensions, dirtyRiptide, dirtySpinStop, doingInventoryAction, fallDistance, fluidHeight, gameType, glideBoostTicks, GRAVITY, hasDepthStrider, horizontalCollision, inBlockState, inLoadingScreen, input, inputMode, insideUnloadedChunk, interactRotation, JUMP_HEIGHT, lastTickFinalVelocity, mappingInfo, minBounceYVel, nearBamboo, nearDripstone, onGround, pitch, position, predictionResult, prevPitch, prevPosition, prevUnvalidatedPosition, prevYaw, riptideItem, rotation, scaffoldDescend, sinceAuthInput, sinceLoadingScreen, sinceTridentUse, sneakingAttributeModifier, soulSandBelow, STEP_HEIGHT, 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) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsFluid(Box box) booleandoesNotCollide(float offsetX, float offsetY, float offsetZ) floatorg.cloudburstmc.math.vector.Vector3ifloatgetFrictionInfluencedSpeed(float slipperiness) floatfloatorg.cloudburstmc.math.vector.Vector3igetOnPos(float offset) floatbooleanisClosed()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, getMaxOffset, 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)
-
-
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. -
isMovementExempted
public boolean isMovementExempted() -
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)
-