So I decided to make this thread because there were a lot of changes in 1.8.
So this thread is for modders to talk about the new things that have changed and to help them out with problems they are having with their code.
Here are some of the things that have changed.
They removed setBlockTexturename() setTextureName() as well as registerBlockIcons() And anything that accepts coordinates such as onBlockActivated() and onEntityCollidedWithBlock() Anything with coordinates has been replaced with BlockPos Change the coordinates with BlockPos. And the side argument (int) in most methods has been changed to EnumFacing
To get Blocks/Items to render in your inventory you need to register the models with this
You can replace ("modid:items_registered_name", "inventory")); with this.
(Reference.MOD_ID + ":ItemNameHere", "inventory"));
That is, If you use a Reference class.
For rendering Items you should replace the old method of TileEntitySpecialRenderers here is an example
Replaced With
World generation is basically the same except for the new BlockPos method.
If you would like to see some of this code working here is my git for The BackWoods mod 1.8
https://github.com/BackWoodsMod/TheBackWoods-1.8
Thanks. Hope this helps everyone.
So this thread is for modders to talk about the new things that have changed and to help them out with problems they are having with their code.
Here are some of the things that have changed.
They removed setBlockTexturename() setTextureName() as well as registerBlockIcons() And anything that accepts coordinates such as onBlockActivated() and onEntityCollidedWithBlock() Anything with coordinates has been replaced with BlockPos Change the coordinates with BlockPos. And the side argument (int) in most methods has been changed to EnumFacing
To get Blocks/Items to render in your inventory you need to register the models with this
Code:
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(YourItem, metadata, new ModelResourceLocation("modid:items_registered_name", "inventory"));
You can replace ("modid:items_registered_name", "inventory")); with this.
(Reference.MOD_ID + ":ItemNameHere", "inventory"));
That is, If you use a Reference class.
For rendering Items you should replace the old method of TileEntitySpecialRenderers here is an example
Code:
Tessellator tess = Tessellator.instance;
tess.startDrawingQuads();
tess.addVertexWithUV ...
...
tess.draw();
Replaced With
Code:
Tessellator tess = Tessellator.getInstance();
WorldRenderer worldrenderer = tess.getWorldRenderer();
worldrenderer.addVertexWithUV ...
...
tess.draw();
World generation is basically the same except for the new BlockPos method.
If you would like to see some of this code working here is my git for The BackWoods mod 1.8
https://github.com/BackWoodsMod/TheBackWoods-1.8
Thanks. Hope this helps everyone.