content: package com.accbdd.complicated_bees.item;
  
  import com.accbdd.complicated_bees.bees.BeeHousingModifier;
  import net.minecraft.client.Minecraft;
  import net.minecraft.network.chat.Component;
  import net.minecraft.world.item.ItemStack;
  import net.minecraft.world.item.TooltipFlag;
  import net.minecraft.world.level.Level;
  import net.minecraftforge.common.ForgeConfigSpec;
  import org.jetbrains.annotations.Nullable;
  
  import java.util.List;
  
  public class FrameItem extends DisableableItem {
      private final BeeHousingModifier modifier;
  
      public FrameItem(Properties pProperties, BeeHousingModifier modifier, ForgeConfigSpec.ConfigValue<Boolean> configValue) {
          super(pProperties, configValue);
          this.modifier = modifier;
      }
  
      public BeeHousingModifier getModifier() {
          return modifier;
      }
  
      @Override
      public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> components, TooltipFlag pIsAdvanced) {
          if (Minecraft.getInstance().level != null) {
              components.addAll(modifier.getTooltipComponent());
          }
      }
  }
  
  