content: package family_fun_pack.gui.components.actions;
  
  import family_fun_pack.modules.PumpkinAuraModule;
  import net.minecraftforge.fml.relauncher.Side;
  import net.minecraftforge.fml.relauncher.SideOnly;
  
  @SideOnly(Side.CLIENT)
  public class OnOffPumpkinAura implements OnOffAction {
  
      private final PumpkinAuraModule module;
  
      private final int id;
  
      public OnOffPumpkinAura(final PumpkinAuraModule module, final int id) {
          this.module = module;
          this.id = id;
      }
  
      @Override
      public void toggle(boolean state) {
          switch (id) {
              case -2: {
                  module.ignoreTerrain = state;
                  break;
              }
              case -1: {
                  module.antiTotem = state;
                  break;
              }
              case 0: {
                  module.autoSwitch = state;
                  break;
              }
              case 1: {
                  module.sequential = state;
                  break;
              }
              case 5: {
                  module.render = state;
                  break;
              }
              case 7: {
                  module.bedwars = state;
                  break;
              }
          }
          module.save();
      }
  }
  