package info.u_team.u_team_core.menu;

import info.u_team.u_team_core.inventory.UItemStackHandler;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.SlotItemHandler;

public class ItemSlot extends SlotItemHandler {
	
	private final IItemHandler itemHandler;
	private final int index;
	
	public ItemSlot(IItemHandler itemHandler, int index, int x, int y) {
		super(itemHandler, index, x, y);
		this.itemHandler = itemHandler;
		this.index = index;
	}
	
	@Override
	public void setChanged() {
		if (itemHandler instanceof UItemStackHandler uItemHandler) {
			uItemHandler.onContentsChanged(index);
		}
	}
	
}

@@ -298,21 +298,20 @@
 nal int 
-index
+slot
 ;%0A%09%0A%09pub
@@ -353,21 +353,20 @@
 er, int 
-index
+slot
 , int x,
@@ -396,21 +396,20 @@
 andler, 
-index
+slot
 , x, y);
@@ -454,21 +454,19 @@
 his.
-index = index
+slot = slot
 ;%0A%09%7D
@@ -608,13 +608,12 @@
 ged(
-index
+slot
 );%0A%09

Rename param to slot