Uses of Class
org.geysermc.geyser.level.physics.BoundingBox
Packages that use BoundingBox
Package
Description
-
Uses of BoundingBox in org.geysermc.geyser.level.physics
Methods in org.geysermc.geyser.level.physics that return BoundingBoxMethods in org.geysermc.geyser.level.physics with parameters of type BoundingBoxModifier and TypeMethodDescriptionbooleanBoundingBox.checkIntersection(double offsetX, double offsetY, double offsetZ, BoundingBox otherBox)booleanBoundingBox.checkIntersection(com.nukkitx.math.vector.Vector3d offset, BoundingBox otherBox)CollisionManager.collidableBlocksIterator(BoundingBox box)com.nukkitx.math.vector.Vector3dCollisionManager.correctMovement(com.nukkitx.math.vector.Vector3d movement, BoundingBox boundingBox, boolean onGround, double stepUp, boolean checkWorld)doubleBoundingBox.getIntersectionSize(BoundingBox otherBoundingBox, Direction side)Get the distance required to move this bounding box to one of otherBoundingBox's sidesdoubleBoundingBox.getMaxOffset(double xOffset, double yOffset, double zOffset, BoundingBox otherBoundingBox, Axis axis, double offset)Find the maximum offset of another bounding box in an axis that will not collide with this bounding box -
Uses of BoundingBox in org.geysermc.geyser.session.cache
Methods in org.geysermc.geyser.session.cache with parameters of type BoundingBoxModifier and TypeMethodDescriptionbooleanPistonCache.checkCollision(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox)doublePistonCache.computeCollisionOffset(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox, Axis axis, double offset) -
Uses of BoundingBox in org.geysermc.geyser.translator.collision
Fields in org.geysermc.geyser.translator.collision declared as BoundingBoxMethods in org.geysermc.geyser.translator.collision that return BoundingBoxMethods in org.geysermc.geyser.translator.collision with parameters of type BoundingBoxModifier and TypeMethodDescriptionvoidBlockCollision.beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)Overridden in classes like SnowCollision and GrassPathCollision when correction code needs to be run before the main correctionvoidDirtPathCollision.beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)voidSnowCollision.beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)booleanBlockCollision.checkIntersection(double x, double y, double z, BoundingBox playerCollision)booleanBlockCollision.checkIntersection(com.nukkitx.math.vector.Vector3i position, BoundingBox playerCollision)doubleBlockCollision.computeCollisionOffset(double x, double y, double z, BoundingBox boundingBox, Axis axis, double offset)booleanBlockCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)Returns false if the movement is invalid, and in this case it shouldn't be sent to the server and should be cancelled While the Java server should do this, it could result in false flags by anticheat This functionality is currently only used in 6 or 7 layer snowbooleanDoorCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)booleanScaffoldingCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)booleanSnowCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)booleanTrapdoorCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)Constructors in org.geysermc.geyser.translator.collision with parameters of type BoundingBoxModifierConstructorDescriptionprotectedBlockCollision(BoundingBox[] boxes)DirtPathCollision(String params, BoundingBox[] defaultBoxes)DoorCollision(String params, BoundingBox[] defaultBoxes)OtherCollision(BoundingBox[] boundingBoxes)ScaffoldingCollision(String params, BoundingBox[] defaultBoxes)SnowCollision(String params, BoundingBox[] defaultBoxes)TrapdoorCollision(String params, BoundingBox[] defaultBoxes) -
Uses of BoundingBox in org.geysermc.geyser.translator.level.block.entity
Methods in org.geysermc.geyser.translator.level.block.entity with parameters of type BoundingBoxModifier and TypeMethodDescriptionbooleanPistonBlockEntity.checkCollision(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox)doublePistonBlockEntity.computeCollisionOffset(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox, Axis axis, double movement)Compute the maximum movement of a bounding box that won't collide with the moving block attached to this piston