Class SnowCollision
java.lang.Object
org.geysermc.connector.network.translators.collision.translators.BlockCollision
org.geysermc.connector.network.translators.collision.translators.SnowCollision
-
Field Summary
Fields inherited from class org.geysermc.connector.network.translators.collision.translators.BlockCollision
boundingBoxes, pushAwayTolerance, pushUpTolerance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeCorrectPosition(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 correctionbooleancorrectPosition(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 snowMethods inherited from class org.geysermc.connector.network.translators.collision.translators.BlockCollision
checkIntersection, checkIntersection, computeCollisionOffset
-
Constructor Details
-
SnowCollision
-
-
Method Details
-
beforeCorrectPosition
Description copied from class:BlockCollisionOverridden in classes like SnowCollision and GrassPathCollision when correction code needs to be run before the main correction- Overrides:
beforeCorrectPositionin classBlockCollision
-
correctPosition
public boolean correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)Description copied from class:BlockCollisionReturns 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 snow- Overrides:
correctPositionin classBlockCollision
-