pub(crate) fn move_entity(
state: &EntityPhysicsState,
delta: DVec3,
mover_type: MoverType,
world: &dyn CollisionWorld,
) -> MoveResultExpand description
Moves an entity through the world with collision detection and resolution.
This is the main physics function that implements vanilla’s Entity.move() behavior,
including step-up mechanics and sneak-edge prevention.
§Arguments
state- The entity’s current physics statedelta- The desired movement vector (velocity * dt)mover_type- Type of movement being performedworld- World collision provider
§Returns
A MoveResult containing the final position and collision information.
§Vanilla Reference
net.minecraft.world.entity.Entity.move(MoverType, Vec3)