Class CompensatedWorld
java.lang.Object
ac.boar.anticheat.compensated.world.base.CompensatedWorld
- Direct Known Subclasses:
CompensatedWorldImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToCache(BoarPlayer player, long runtimeId, long uniqueId) voidvoidintgetBlockAt(int x, int y, int z, int layer) getBlockEntity(int x, int y, int z) getBlockState(int x, int y, int z, int layer) getBlockState(Mutable vector3i, int layer) getBlockState(org.cloudburstmc.math.vector.Vector3i vector3i, int layer) getChunk(int chunkX, int chunkZ) getEntity(long id) intintgetMinY()intgetRawBlockAt(int x, int y, int z, int layer) booleanisChunkLoaded(int blockX, int blockZ) booleanisChunkLoadedAt(float x, float z) booleanisOutOfRadius(int blockX, int blockZ) voidput(int x, int z, BoarChunkSection[] chunks) voidremoveEntity(long uniqueId) voidsetViewDistance(int viewDistance) voidupdateBlock(int x, int y, int z, int layer, int block) voidupdateBlock(org.cloudburstmc.math.vector.Vector3i position, int layer, int block) voidupdateSection(int chunkX, int chunkZ, int sectionY, BoarChunkSection section) void
-
Constructor Details
-
CompensatedWorld
public CompensatedWorld()
-
-
Method Details
-
removeEntity
public void removeEntity(long uniqueId) -
getEntity
-
addToCache
-
setViewDistance
public void setViewDistance(int viewDistance) -
cleanChunksAtPlayerPosition
public void cleanChunksAtPlayerPosition() -
yeetOutOfRangeChunks
public void yeetOutOfRangeChunks() -
isOutOfRadius
public boolean isOutOfRadius(int blockX, int blockZ) -
put
-
updateSection
-
clearChunks
public void clearChunks() -
isChunkLoaded
public boolean isChunkLoaded(int blockX, int blockZ) -
isChunkLoadedAt
public boolean isChunkLoadedAt(float x, float z) -
updateBlock
public void updateBlock(org.cloudburstmc.math.vector.Vector3i position, int layer, int block) -
updateBlock
public void updateBlock(int x, int y, int z, int layer, int block) -
getBlockState
-
getBlockState
-
getBlockState
-
getRawBlockAt
public int getRawBlockAt(int x, int y, int z, int layer) -
getBlockAt
public int getBlockAt(int x, int y, int z, int layer) -
getBlockEntity
-
getChunk
-
getMinY
public int getMinY() -
getHeightY
public int getHeightY()
-