package org.cyclops.integratedtunnels.core.part;

import net.minecraft.client.gui.GuiScreen;
import net.minecraft.inventory.Container;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import org.cyclops.cyclopscore.init.ModBase;
import org.cyclops.integrateddynamics.IntegratedDynamics;
import org.cyclops.integrateddynamics.api.part.IPartState;
import org.cyclops.integrateddynamics.api.part.IPartType;
import org.cyclops.integrateddynamics.api.part.PartRenderPosition;
import org.cyclops.integrateddynamics.core.part.PartTypeBase;
import org.cyclops.integratedtunnels.IntegratedTunnels;

/**
 * Base part for a tunnel.
 * @author rubensworks
 */
public abstract class PartTypeTunnel<P extends IPartType<P, S>, S extends IPartState<P>> extends PartTypeBase<P, S> {

    public PartTypeTunnel(String name) {
        super(name, new PartRenderPosition(0.25F, 0.25F, 0.375F, 0.375F));
    }

    @Override
    public ModBase getMod() {
        return IntegratedTunnels._instance;
    }

    @Override
    public Class<? super P> getPartTypeClass() {
        return IPartType.class;
    }

    @Override
    protected boolean hasGui() {
        return false;
    }

    @Override
    public Class<? extends Container> getContainer() {
        return null;
    }

    @Override
    @SideOnly(Side.CLIENT)
    public Class<? extends GuiScreen> getGui() {
        return null;
    }
}

@@ -513,16 +513,183 @@
 sition;%0A
+import org.cyclops.integrateddynamics.core.client.gui.container.GuiPartSettings;%0Aimport org.cyclops.integrateddynamics.core.inventory.container.ContainerPartSettings;%0A
 import o
@@ -1186,32 +1186,131 @@
 nstance;%0A    %7D%0A%0A
+    @Override%0A    public ModBase getModGui() %7B%0A        return IntegratedDynamics._instance;%0A    %7D%0A%0A
     @Override%0A  
@@ -1461,12 +1461,11 @@
 urn 
-fals
+tru
 e;%0A 
@@ -1558,61 +1558,57 @@
 urn 
-null;%0A    %7D%0A%0A    @Override%0A    @SideOnly(Side.CLIENT)
+ContainerPartSettings.class;%0A    %7D%0A%0A    @Override
 %0A   
@@ -1672,12 +1672,29 @@
 urn 
-null
+GuiPartSettings.class
 ;%0A  

Add part settings gui to tunnels