Help please, I'm new to Java. I took buildcraft 7.1 as the basis, deciding to make my auto-stack, but for some reason when I start with buildsoft's Tile, everything works and the GUI opens, but if I copy its Tile from the source and connect it, then a casting error occurs, I, in fact, did not change anything, but only used it a little differently, because TileEntity returns and it is the "parent" of TileBuildCraft, I thought the parent class should be brought to the child without any questions, "why cheers" why? Already tried everything, nothing helps ...
Caused by: java.lang.ClassCastException: buildcraft.factory.TileAutoWorkbench cannot be cast to com.silvercraft.tile_entity.TileAutoWorkbench at com.silvercraft.handler.SCGuiHandler.getServerGuiElement(SCGuiHandler.java:36) ~[SCGuiHandler.class:?] TileBuildCraft: http://paste.ubuntu.com/23203777/
TileAutoWorkbench: http://paste.ubuntu.com/23203781/
IGuiHandler: http://paste.ubuntu.com/23203795/
ContainerAutoWorkbench: http://paste.ubuntu.com/23203804/