Uses of Class
org.geysermc.geyser.level.physics.BoundingBox
Package
Description
-
Uses of BoundingBox in org.geysermc.geyser.level.physics
Modifier and TypeMethodDescriptionboolean
BoundingBox.checkIntersection(double offsetX, double offsetY, double offsetZ, BoundingBox otherBox)
boolean
BoundingBox.checkIntersection(com.nukkitx.math.vector.Vector3d offset, BoundingBox otherBox)
CollisionManager.collidableBlocksIterator(BoundingBox box)
com.nukkitx.math.vector.Vector3d
CollisionManager.correctMovement(com.nukkitx.math.vector.Vector3d movement, BoundingBox boundingBox, boolean onGround, double stepUp, boolean checkWorld)
double
BoundingBox.getIntersectionSize(BoundingBox otherBoundingBox, Direction side)
Get the distance required to move this bounding box to one of otherBoundingBox's sidesdouble
BoundingBox.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
Modifier and TypeMethodDescriptionboolean
PistonCache.checkCollision(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox)
double
PistonCache.computeCollisionOffset(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox, Axis axis, double offset)
-
Uses of BoundingBox in org.geysermc.geyser.translator.collision
Modifier and TypeMethodDescriptionvoid
BlockCollision.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 correctionvoid
DirtPathCollision.beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)
void
SnowCollision.beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)
boolean
BlockCollision.checkIntersection(double x, double y, double z, BoundingBox playerCollision)
boolean
BlockCollision.checkIntersection(com.nukkitx.math.vector.Vector3i position, BoundingBox playerCollision)
double
BlockCollision.computeCollisionOffset(double x, double y, double z, BoundingBox boundingBox, Axis axis, double offset)
boolean
BlockCollision.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 snowboolean
DoorCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)
boolean
ScaffoldingCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)
boolean
SnowCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)
boolean
TrapdoorCollision.correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)
ModifierConstructorDescriptionprotected
BlockCollision(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
Modifier and TypeMethodDescriptionboolean
PistonBlockEntity.checkCollision(com.nukkitx.math.vector.Vector3i blockPos, BoundingBox boundingBox)
double
PistonBlockEntity.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