content: package me.earth.earthhack.impl.modules.render.fullbright;
  
  import me.earth.earthhack.api.module.Module;
  import me.earth.earthhack.api.module.util.Category;
  import me.earth.earthhack.api.setting.Setting;
  import me.earth.earthhack.api.setting.settings.EnumSetting;
  import me.earth.earthhack.impl.modules.render.fullbright.mode.BrightMode;
  import me.earth.earthhack.impl.util.client.SimpleData;
  import net.minecraft.entity.effect.StatusEffects;
  
  /**
   * {@link net.minecraft.client.render.LightmapTextureManager} for Mode - Gamma
   */
  public class Fullbright extends Module
  {
      protected final Setting<BrightMode> mode =
              register(new EnumSetting<>("Mode", BrightMode.Gamma));
  
      public Fullbright()
      {
          super("Fullbright", Category.Render);
          this.listeners.add(new ListenerTick(this));
  
          SimpleData data = new SimpleData(this,
                  "Makes the game constantly bright.");
          data.register(mode, """
                  - Gamma : Normal FullBright.
                  - Potion : Applies a Night Vision effect to you.
                  """);
          this.setData(data);
      }
  
      @Override
      protected void onDisable()
      {
          if (mc.player != null && mode.getValue() == BrightMode.Potion)
          {
              mc.player.removeStatusEffect(StatusEffects.NIGHT_VISION);
          }
      }
  
      public BrightMode getBrightMode() {
          return mode.getValue();
      }
  
  }
  