5 juil. 2015, 20:02

Merci, mais j’ai du mal a mettre ce qu’il faut dans mon GUIHandler…
Si’il faut garder l’Override, alors je pense que je vais galerer pour un bout de temps

​@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
if(ID == GUI.CRUSHER.ordinal()) return new *GuiCrusher(1, player, world, x, y, z)*;
return null;
}

Eclipse veut que je mette comme paramètres (int, EntityPlayer, World, int, int, int, TileEntityCrusher, IInventory, InventoryPlayer, IInventory)
car mon GuiCrusher les a dans son cosntructeur.

​public GuiCrusher(int iD, EntityPlayer player, World world, int x, int y, int z, TileEntityCrusher tileEntityCrusher, IInventory crusherInventory, InventoryPlayer playerInv, IInventory crusherInv) {
super(new ContainerCrusher(tileEntityCrusher, crusherInventory));
        this.playerInventory = playerInv;
        this.tileCrusher = crusherInv;
}