Class CompensatedWorldImpl
java.lang.Object
ac.boar.anticheat.compensated.world.base.CompensatedWorld
ac.boar.anticheat.compensated.world.CompensatedWorldImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classTracks the block reads made while it is open (from trackBlockReads to close). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectColliders(List<Box> list, Box aABB) collectMovementColliders(Box volume) getEntityCollisions(Box query) getFluidState(int x, int y, int z) getFluidState(Mutable mutable) getFluidState(org.cloudburstmc.math.vector.Vector3i vec3) intgetRawBlockAt(int x, int y, int z, int layer) booleanhasChunksAt(int i, int j, int k, int l) nearbyDepenetrationMagnitude(Box moverBox) booleannoCollision(Box aabb) final voidobserveBlockRead(int x, int y, int z, int layer) Records one block read for the open KnownBlockReads, if any.voidsetCollisionShift(EntityCache entity, float y) Boat shape for a player on foot.Methods inherited from class ac.boar.anticheat.compensated.world.base.CompensatedWorld
addToCache, cleanChunksAtPlayerPosition, clearChunks, fetchEntity, fetchTrackedEntity, getBlockAt, getBlockEntity, getBlockState, getBlockState, getBlockState, getChunk, getEntity, getHeightY, getKnownMappedRawBlockAt, getKnownRawBlockAt, getMinY, getTrackedEntity, getTrackedEntityByUniqueId, isChunkLoaded, isChunkLoadedAt, isLoadedForPlayerAt, isOutOfRadius, promoteEntity, put, removeEntity, setViewDistance, updateBlock, updateBlock, updateSection, yeetOutOfRangeChunks
-
Constructor Details
-
CompensatedWorldImpl
-
-
Method Details
-
trackBlockReads
-
observeBlockRead
public final void observeBlockRead(int x, int y, int z, int layer) Records one block read for the open KnownBlockReads, if any. getRawBlockAt calls it on every read. Code that reads through getKnownRawBlockAt instead calls it itself. It looks up where the block data came from, so callers pass only the position and layer. -
getRawBlockAt
public int getRawBlockAt(int x, int y, int z, int layer) - Overrides:
getRawBlockAtin classCompensatedWorld
-
noCollision
-
getFluidState
-
getFluidState
-
getFluidState
-
collectMovementColliders
-
collectColliders
-
getEntityCollisions
-
nearbyDepenetrationMagnitude
-
setCollisionShift
-
clearCollisionShift
public void clearCollisionShift() -
trustedBoatCollisionBox
Boat shape for a player on foot. Uses the same boats and saved shape as the solid-entity query, but has no fallback (returns null instead). -
hasChunksAt
public boolean hasChunksAt(int i, int j, int k, int l)
-