SpeedAntiCornerBump

Prevents you from bumping into corners when chasing.

Properties

Link copied to clipboard
open val gpuDevice: GpuDevice
Link copied to clipboard
open val interaction: MultiPlayerGameMode
Link copied to clipboard
open val mc: Minecraft
Link copied to clipboard
open val network: ClientPacketListener
Link copied to clipboard
open val player: LocalPlayer
Link copied to clipboard
open val world: ClientLevel

Functions

Link copied to clipboard
fun canJumpOnBlock(collidingPos: Vec3, lastGroundPos: Vec3): Boolean
Link copied to clipboard
fun canPlayerEnterBlockPos(pos: BlockPos, blockState: BlockState, playerBox: AABB, tolerateLowBoundingBoxes: Boolean): Boolean

Used for blocks that are above the block we try to jump on. Checks if the player can enter the block pos or if he would collide with the block and fall down.

Link copied to clipboard

Called when the speed mode might jump. Decides if the jump should be delayed.

Link copied to clipboard
fun shouldJumpOnBlock(pos: BlockPos, blockState: BlockState, playerBox: AABB): Boolean

Would we come to a stop at the given block due to collision?