content: package mod.acgaming.universaltweaks.tweaks.entities.burning.horse.mixin;
  
  import net.minecraft.entity.passive.AbstractHorse;
  import net.minecraft.entity.passive.EntitySkeletonHorse;
  import net.minecraft.util.math.BlockPos;
  import net.minecraft.world.World;
  
  import mod.acgaming.universaltweaks.config.UTConfigTweaks;
  import org.spongepowered.asm.mixin.Mixin;
  
  @Mixin(EntitySkeletonHorse.class)
  public abstract class UTSkeletonHorseMixin extends AbstractHorse
  {
      protected UTSkeletonHorseMixin(World worldIn)
      {
          super(worldIn);
      }
  
      @Override
      public void onLivingUpdate()
      {
          if (UTConfigTweaks.ENTITIES.UNDEAD_HORSES.utBurningUndeadHorsesToggle && !this.isTame() && this.world.isDaytime() && !this.world.isRemote)
          {
              float f = this.getBrightness();
              if (f > 0.5F && this.rand.nextFloat() * 30.0F < (f - 0.4F) * 2.0F && this.world.canSeeSky(new BlockPos(this.posX, this.posY + (double) this.getEyeHeight(), this.posZ)))
              {
                  this.setFire(8);
              }
          }
          super.onLivingUpdate();
      }
  }