content: package com.accbdd.complicated_bees.block.entity;
  
  import net.minecraft.world.item.ItemStack;
  import net.minecraftforge.items.IItemHandlerModifiable;
  import org.jetbrains.annotations.NotNull;
  
  public class AdaptedItemHandler implements IItemHandlerModifiable {
  
      private final IItemHandlerModifiable handler;
  
      public AdaptedItemHandler(IItemHandlerModifiable handler) {
          this.handler = handler;
      }
  
      @Override
      public void setStackInSlot(int slot, @NotNull ItemStack stack) {
          handler.setStackInSlot(slot, stack);
      }
  
      @Override
      public int getSlots() {
          return handler.getSlots();
      }
  
      @Override
      public @NotNull ItemStack getStackInSlot(int slot) {
          return handler.getStackInSlot(slot);
      }
  
      @Override
      public @NotNull ItemStack insertItem(int slot, @NotNull ItemStack stack, boolean simulate) {
          return handler.insertItem(slot, stack, simulate);
      }
  
      @Override
      public @NotNull ItemStack extractItem(int slot, int amount, boolean simulate) {
          return handler.extractItem(slot, amount, simulate);
      }
  
      @Override
      public int getSlotLimit(int slot) {
          return handler.getSlotLimit(slot);
      }
  
      @Override
      public boolean isItemValid(int slot, @NotNull ItemStack stack) {
          return handler.isItemValid(slot, stack);
      }
  
      public IItemHandlerModifiable getInternalHandler() {
          return this.handler;
      }
  }
  