content: package mod.acgaming.universaltweaks.mods.botania;
  
  import java.util.Arrays;
  import java.util.LinkedList;
  
  import net.minecraft.client.Minecraft;
  import net.minecraft.world.WorldProvider;
  import net.minecraftforge.client.event.RenderWorldLastEvent;
  import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  
  import mod.acgaming.universaltweaks.UniversalTweaks;
  import mod.acgaming.universaltweaks.config.UTConfigGeneral;
  import mod.acgaming.universaltweaks.config.UTConfigMods;
  import vazkii.botania.client.render.world.SkyblockSkyRenderer;
  import vazkii.botania.common.core.handler.ConfigHandler;
  
  public class UTBotaniaFancySkybox
  {
      public static LinkedList<Integer> dimList = new LinkedList<>();
  
      public static void initDimList()
      {
          if (UTConfigMods.BOTANIA.utBotaniaSkyboxDims.length < 1) return;
          dimList.clear();
          dimList.addAll(Arrays.asList(UTConfigMods.BOTANIA.utBotaniaSkyboxDims));
          UniversalTweaks.LOGGER.info("Botania Fancy Skybox dimension list initialized");
      }
  
      @SubscribeEvent
      public static void utRenderBotaniaFancySkybox(RenderWorldLastEvent event)
      {
          if (UTConfigMods.BOTANIA.utBotaniaSkyboxDims.length < 1) return;
          WorldProvider worldProvider = Minecraft.getMinecraft().world.provider;
          if (ConfigHandler.enableFancySkybox && dimList.contains(worldProvider.getDimension()) && !(worldProvider.getSkyRenderer() instanceof SkyblockSkyRenderer))
          {
              worldProvider.setSkyRenderer(new SkyblockSkyRenderer());
              if (UTConfigGeneral.DEBUG.utDebugToggle) UniversalTweaks.LOGGER.debug("UTBotaniaFancySkybox ::: Enabled fancy skybox for dimension {}", worldProvider.getDimension());
          }
      }
  }