mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 20:09:49 +00:00
1.7.10 Files
Files added
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user