Class SnowCollision

java.lang.Object
org.geysermc.geyser.translator.collision.BlockCollision
org.geysermc.geyser.translator.collision.SnowCollision

public class SnowCollision extends BlockCollision
  • Constructor Details

    • SnowCollision

      public SnowCollision(String params, BoundingBox[] defaultBoxes)
  • Method Details

    • beforeCorrectPosition

      public void beforeCorrectPosition(int x, int y, int z, BoundingBox playerCollision)
      Description copied from class: BlockCollision
      Overridden in classes like SnowCollision and GrassPathCollision when correction code needs to be run before the main correction
      Overrides:
      beforeCorrectPosition in class BlockCollision
    • correctPosition

      public boolean correctPosition(GeyserSession session, int x, int y, int z, BoundingBox playerCollision)
      Description copied from class: BlockCollision
      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 snow
      Overrides:
      correctPosition in class BlockCollision
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BlockCollision
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BlockCollision
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BlockCollision