1.7.10 Files

Files added
This commit is contained in:
KAMKEEL committed 2018-09-13 12:03:28 -04:00
1 parent 393ea9b463
commit a31efb2dc3
1768 files changed
+84831

No files matched your search

@@ -0,0 +1,36 @@
package noppes.npcs.client.gui.util;
import net.minecraft.client.gui.GuiScreen;
public class SubGuiInterface extends GuiNPCInterface{
public GuiScreen parent;
@Override
public void save() {
}
@Override
public void close() {
if(parent instanceof ISubGuiListener)
((ISubGuiListener)parent).subGuiClosed(this);
if(parent instanceof GuiNPCInterface)
((GuiNPCInterface)parent).closeSubGui(this);
else if(parent instanceof GuiContainerNPCInterface)
((GuiContainerNPCInterface)parent).closeSubGui(this);
else
super.close();
}
public GuiScreen getParent(){
if(parent instanceof SubGuiInterface)
return ((SubGuiInterface)parent).getParent();
return parent;
}
@Override
public void drawScreen(int i, int j, float f){
super.drawScreen(i, j, f);
}
}