content: package mod.acgaming.universaltweaks.tweaks.entities.speed.player.mixin;
  
  import net.minecraft.network.NetHandlerPlayServer;
  
  import mod.acgaming.universaltweaks.config.UTConfigTweaks;
  import org.spongepowered.asm.mixin.Mixin;
  import org.spongepowered.asm.mixin.injection.Constant;
  import org.spongepowered.asm.mixin.injection.ModifyConstant;
  
  @Mixin(NetHandlerPlayServer.class)
  public class UTMaxPlayerSpeedMixin
  {
      @ModifyConstant(method = "processPlayer", constant = @Constant(floatValue = 100.0F))
      public float utModifyMaxSpeed(float speed)
      {
          return UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerMaxSpeed != 100D ? (float) UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerMaxSpeed : speed;
      }
  
      @ModifyConstant(method = "processPlayer", constant = @Constant(floatValue = 300.0F))
      public float utModifyMaxElytraSpeed(float speed)
      {
          return UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerMaxElytraSpeed != 300D ? (float) UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerMaxElytraSpeed : speed;
      }
  
      @ModifyConstant(method = "processVehicleMove", constant = @Constant(doubleValue = 100.0D))
      public double utModifyMaxVehicleSpeed(double speed)
      {
          return UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerVehicleSpeed != 100D ? UTConfigTweaks.ENTITIES.PLAYER_SPEED.utPlayerVehicleSpeed : speed;
      }
  }