643644645646647648649650651652653
switch (movementComp.mode) { case WALKING: entity.send(new FootstepEvent()); break; case SWIMMING: entity.send(new SwimStrokeEvent(worldProvider.getBlock(state.getPosition()))); break; } } } }