Вылет майнкрафта при открытии GuiScreen

Версия Minecraft
1.7.10
19
0
Здравствуйте, добавил кнопки и написал свой класс по примеру GuiButton, до того как я это сделал все работало нормально, но после этого стало вылетать

GuiPdaButton:
public class GuiPdaButton extends Gui {

     public final int id;
       public pdaGui parent;
       public int x;
       public int y;
       public int width;
       public int height;
       public int textureX;
       public int textureY;
       public ResourceLocation texture;
       public ResourceLocation highlightedTexture;


       public GuiPdaButton(int id, pdaGui parent, int x, int y, int width, int height, int textureX, int textureY, ResourceLocation texture, ResourceLocation highlightedTexture) {
          this.id = id;
          this.parent = parent;
          this.x = x;
          this.y = y;
          this.width = width;
          this.height = height;
          this.textureX = textureX;
          this.textureY = textureY;
          this.texture = texture;
          this.highlightedTexture = highlightedTexture;
       }

       public void mouseClick(int mouseX, int mouseY, int button) {
          if(button == 0 && this.isMouseOver(mouseX, mouseY)) {
             this.parent.buttonClick(this);
          }

       }

       public void drawButton(int mouseX, int mouseY) {
          if(this.isMouseOver(mouseX, mouseY)) {
             Minecraft.getMinecraft().renderEngine.bindTexture(this.highlightedTexture);
          } else {
             Minecraft.getMinecraft().renderEngine.bindTexture(this.texture);
          }

          this.drawButtonScaled();
       }

       public void drawButtonScaled() {
          float f = 0.00390625F;
          float f1 = 0.00390625F;
          double scale = (double)Math.min((float)this.parent.height / 500.0F, 1.0F);
          double x = (double)this.parent.width - (double)(20 + this.width) * scale;
          double y = (double)this.y * scale;
          Tessellator tessellator = Tessellator.instance;
          tessellator.startDrawingQuads();
          tessellator.addVertexWithUV(x, y + (double)this.height * scale, (double)super.zLevel, (double)((float)(this.textureX + 0) * f), (double)((float)(this.textureY + this.height) * f1));
          tessellator.addVertexWithUV(x + (double)this.width * scale, y + (double)this.height * scale, (double)super.zLevel, (double)((float)(this.textureX + this.width) * f), (double)((float)(this.textureY + this.height) * f1));
          tessellator.addVertexWithUV(x + (double)this.width * scale, y, (double)super.zLevel, (double)((float)(this.textureX + this.width) * f), (double)((float)this.textureY * f1));
          tessellator.addVertexWithUV(x, y, (double)super.zLevel, (double)((float)this.textureX * f), (double)((float)this.textureY * f1));
          tessellator.draw();
       }

       private boolean isMouseOver(int mouseX, int mouseY) {
          double scale = (double)Math.min((float)this.parent.height / 500.0F, 1.0F);
          double x = (double)this.parent.width - (double)(20 + this.width) * scale;
          double y = (double)this.y * scale;
          return (double)mouseX >= x && (double)mouseX < x + (double)this.width * scale && (double)mouseY >= y && (double)mouseY < y + (double)this.height * scale;
       }
    }

Если кто то знает решение проблемы, то подскажите пожалуйста
 
Краш-лог
---- Minecraft Crash Report ----
// Why did you do that?

Time: 04.02.20 23:12
Description: Rendering screen

java.lang.ClassCastException: by.Unky.pda.GuiPdaButton cannot be cast to net.minecraft.client.gui.GuiButton
at net.minecraft.client.gui.GuiScreen.drawScreen(GuiScreen.java:63)
at by.Unky.pda.pdaGui.drawScreen(pdaGui.java:78)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraft.client.gui.GuiScreen.drawScreen(GuiScreen.java:63)
at by.Unky.pda.pdaGui.drawScreen(pdaGui.java:78)

-- Screen render details --
Details:
Screen name: by.Unky.pda.pdaGui
Mouse location: Scaled: (209, 112). Absolute: (418, 255)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
Stacktrace:
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:962)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (x86) version 10.0
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 886997544 bytes (845 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
UCHIJA pda{0.0.1} [pda] (bin)
GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4252' Renderer: 'Intel(R) HD Graphics 4000'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4252, Intel
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
Краш-лог:
---- Minecraft Crash Report ----
// Why did you do that?

Time: 04.02.20 23:12
Description: Rendering screen

java.lang.ClassCastException: by.Unky.pda.GuiPdaButton cannot be cast to net.minecraft.client.gui.GuiButton
	at net.minecraft.client.gui.GuiScreen.drawScreen(GuiScreen.java:63)
	at by.Unky.pda.pdaGui.drawScreen(pdaGui.java:78)
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
	at net.minecraft.client.Minecraft.run(Minecraft.java:962)
	at net.minecraft.client.main.Main.main(Main.java:164)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at net.minecraft.client.gui.GuiScreen.drawScreen(GuiScreen.java:63)
	at by.Unky.pda.pdaGui.drawScreen(pdaGui.java:78)

-- Screen render details --
Details:
	Screen name: by.Unky.pda.pdaGui
	Mouse location: Scaled: (209, 112). Absolute: (418, 255)
	Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
Stacktrace:
	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
	at net.minecraft.client.Minecraft.run(Minecraft.java:962)
	at net.minecraft.client.main.Main.main(Main.java:164)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
	at GradleStart.main(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.7.10
	Operating System: Windows 10 (x86) version 10.0
	Java Version: 1.8.0_91, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
	Memory: 886997544 bytes (845 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 4 mods loaded, 4 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCHIJA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
	UCHIJA	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
	UCHIJA	Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) 
	UCHIJA	pda{0.0.1} [pda] (bin) 
	GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4252' Renderer: 'Intel(R) HD Graphics 4000'
	Launched Version: 1.7.10
	LWJGL: 2.9.1
	OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4252, Intel
	GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

	Is Modded: Definitely; Client brand changed to 'fml,forge'
	Type: Client (map_client.txt)
	Resource Packs: []
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	Anisotropic Filtering: Off (1)
Сверху