Posted September 24, 201410 yr I just have no idea what i'm doing wrong. The block will place fine, but the method isn't being called public class blockWire extends blockCT { public blockWire(){ super(Material.cloth); this.setBlockName(names.blocks.blockWire); } @Override public TileEntity createNewTileEntity(World world, int metadata) { System.out.println("Y U NO BE CALLED?"); return new TileEntityWire(); } } BlockCT Just extends Block with a few extra methods
September 24, 201410 yr You have to extend BlockContainer for it to work... PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
September 25, 201410 yr Is always seemed to be be the easiest solution to me... In the earlier versions I always got crashes when I only used hasTileEntity() PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
September 25, 201410 yr As diesieben07 said, in Java it is impossible to extend more than one class - this is what interfaces are for. In this case, the ITileEntityProvider interface. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
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.