Posted December 29, 20168 yr Hey, I'm currently working on getting into modding minecraft and have recently begun working on making a TileEntity with a 1 slot inventory (no gui yet). The issue I am having is that the block I have made (BlockEnderTransmitter) will not become a Tile Entity. I have checked with multiple tutorials and compared my code to other opensource projects to try to find the issue but I don't know how I should begin troubleshooting the problem. Any help would be much appreciated! My project is uploaded to github here: https://github.com/kriNon/Endernet1.10.2/ The classes I am having difficulty with are kriNon.blocks.BlockEnderTransmitter and kriNon.tileentities.TileEntityEnderTransmitter.
December 29, 20168 yr Hey, I'm currently working on getting into modding minecraft and have recently begun working on making a TileEntity with a 1 slot inventory (no gui yet). The issue I am having is that the block I have made (BlockEnderTransmitter) will not become a Tile Entity. I have checked with multiple tutorials and compared my code to other opensource projects to try to find the issue but I don't know how I should begin troubleshooting the problem. Any help would be much appreciated! My project is uploaded to github here: https://github.com/kriNon/Endernet1.10.2/ The classes I am having difficulty with are kriNon.blocks.BlockEnderTransmitter and kriNon.tileentities.TileEntityEnderTransmitter. How is this not throwing an error at you? public TileEntity createNewTileEntity(World worldIn, int meta) { It should be public TileEntity createNewTileEntity(World worldIn, IBlockState state) { VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
December 29, 20168 yr Author If I try to do that it throws an error telling me to remove the @Override on line 32, when I do so I get an error (on line 23) that BlockEnderTransmitter must implement the inherited abstract method ITileEntityProvider.createNewTileEntity(World, int)
December 29, 20168 yr If I try to do that it throws an error telling me to remove the @Override on line 32, when I do so I get an error (on line 23) that BlockEnderTransmitter must implement the inherited abstract method ITileEntityProvider.createNewTileEntity(World, int) That is the problem, dont use ITileEntityProvider, just override the method signature I gave you. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
December 29, 20168 yr Author Could you go into a little bit more detail? How exactly should I be going about doing this?
December 29, 20168 yr Could you go into a little bit more detail? How exactly should I be going about doing this? Don't extend BlockContainer or implement ITileEntityProvider . Override Block#hasTileEntity(IBlockState) and Block#createTileEntity . Your IDE should be able to generate override methods for you. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
December 29, 20168 yr Author I have tried what I think you're telling me to do here: https://gist.github.com/kriNon/dbac43d39511dc621608eb2d512f1894 I'm getting an error telling me "The method createNewTileEntity(World, IBlockState) of type BlockEnderTransmitter must override or implement a supertype method". When I try getting rid of the @Override it still doesn't work properly.
December 29, 20168 yr I have tried what I think you're telling me to do here: https://gist.github.com/kriNon/dbac43d39511dc621608eb2d512f1894 I'm getting an error telling me "The method createNewTileEntity(World, IBlockState) of type BlockEnderTransmitter must override or implement a supertype method". When I try getting rid of the @Override it still doesn't work properly. There's no method in Block called createNewTileEntity , so you can't override it. Delete this method and return a new instance of your TileEntity from the Block#createTileEntity override instead. Overriding a method to do nothing but call the super method is completely pointless. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
December 29, 20168 yr Author So this should be what I should have? https://gist.github.com/kriNon/dbac43d39511dc621608eb2d512f1894 No errors are coming up with this and it seems right, however the block still doesn't seem to be a tile entity. Thanks for all of the help by the way!
December 29, 20168 yr So this should be what I should have? https://gist.github.com/kriNon/dbac43d39511dc621608eb2d512f1894 No errors are coming up with this and it seems right, however the block still doesn't seem to be a tile entity. Thanks for all of the help by the way! Those are the correct methods to override, yes. What makes you think there isn't a TileEntity ? Are your hasTileEntity and createTileEntity methods being called? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
December 29, 20168 yr Author I wrote the code which I believe should make the block have a one slot inventory however I am not able to pipe items in or out using hoppers. I also am able to push the block with pistons, which I believe shouldn't be possible as a tile entity.
December 29, 20168 yr If I try to do that it throws an error telling me to remove the @Override on line 32 An error telling you to remove an @Override annotation means that your method signature is wrong. http://stackoverflow.com/questions/4341432/what-does-override-mean Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
December 29, 20168 yr BlockEnderTransmitter still extends BlockContainer . BlockEnderTransmitter is never used, you only create instances of BlockEnderReceiver : look closely. what is did then https://github.com/kriNon/Endernet1.10.2/blob/master/src/main/java/kriNon/endernet/init/ModBlocks.java#L28-L29 ??
December 29, 20168 yr Author I had fixed BlockEnderTransmitter still extending BlockContainer, I just hadn't pushed the changes to the github page. Thanks a lot for the help with noticing my mistake with not creating instances of BlockEnderTransmitter. Everything works perfectly now, thanks everyone for all of the help!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.