Since this tile-entity only has 2 slots, 2 integers and 1 boolean stored in NBT, I think it is fair to send all of these values to the client, since I am checking 1 slot and 1 boolean for the rendering. The block now renders properly as well
Adding the functions onDataPacket and getDescriptionPacket and adding the code you showed into them, it still does not work, and I still get a FALSE return.
After adding some loggers, it looks like the functions onDataPacket and getDescriptionPacket are never called. After restarting the world, the model renders correctly.
I want to render my TileEntity in a special way, so when there is an Item in a specific slot I want to render a cube representing that item in the model. When checking for the item using the following function:
public boolean getHasItemInSlot(int slot) {
return itemStacks[slot] != null && (itemStacks[slot].stackSize > 0);
}
it always returns false. Even when taking the coordinates from the tileEntity (which ARE valid) it ALWAYS returns false.
TileEntitySpecialRenderer class: https://github.com/rhbvkleef/requiredstuffz/blob/master/src/main/java/tk/yteditors/requiredstuffz/renderer/TileEntityOvenRenderer.java
TileEntity class: https://github.com/rhbvkleef/requiredstuffz/blob/master/src/main/java/tk/yteditors/requiredstuffz/tileEntity/TileEntityOven.java
Github repo: https://github.com/rhbvkleef/requiredstuffz
According to Pahimar you don't need any program arguments when you use the GradleStart or the GradleStartServer class. You need VM arguments, but what are they?
At this point I cant test my mod because the game doesn't want to launch, this is because I can't figure out how to get my run configurations back.
(btw i'm using eclipse)
I have tried adjusting all values in my GL11.glRotatef([params]) function but non of them are rotating the block properly. It should just rotate where the player is facing, like a furnace. Not up and down.
Here's my code:
TileEntityOvenRenderer
OvenModel:
BlockOven@onBlockPlacedBy:
I have a problem with my mod (find it at https://github.com/rhbvkleef/requiredstuffz)
When breakBlock is called on my block (tk.yteditors.requiredstuffz.block.BlockOven) the TileEntity I get from the coordinates, is NOT an instance of TileEntityOven (tk.yteditors.requiredstuffz.tileentity.TileEntityOven) or even IInventory. What's happening here!?
I have recently started modding minecraft.
Today, I am working on adding a Pizza oven to minecraft and of course, sided textures.
The problem I have is that the front is not visible if it is an item. How do I fix this?
BlockOven.java: http://pastebin.com/adwqBQAL
Screenshot: