Jump to content

FreshmanTV

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by FreshmanTV

  1. HWYLA also takes in the color coded name of the liquid stored nice
  2. Found the error, I thought I already implemented the getCapabilities() method, but no Now it works
  3. So I've created a basic Block with a corresponding TileEntity class. The TileEntity implements IFluidHandler and IFluidTank and stores a FluidStack. So it already implements all needed methods (e.g. drain) and works perfectly! I tried my mod out with some other, quality of life mods (in this case HWYLA) and HWYLA throws an error each tick when I look at the mentioned Block. How can I let HWYLA know what kind of information should be shown in the tooltip? (I didn't find any wiki or tutorial explaining that, that's why I'm asking the question here) TileEntityTimeGenerator.java BlockTimeGenerator.java
  4. So, im working at a kind of Guide Book. A created a kind of abstraction for it, one of them is the class "CraftingRecipe". When you call the draw method of this class, it should draw a crafting grid(works) and the items/blocks that are located in the grid. I copied the method "drawItemStack" from GuiContainer to draw the itemsstacks: public void drawItemStack(ItemStack stack, int x, int y, String altText) { RenderHelper.disableStandardItemLighting(); RenderHelper.enableGUIStandardItemLighting(); GlStateManager.translate(0.0F, 0.0F, 32.0F); zLevel = 200.0F; itemRender.zLevel = 200.0F; FontRenderer font = null; if (stack != null && stack.getItem() != null) { font = stack.getItem().getFontRenderer(stack); if (font == null) font = fontRendererObj; itemRender.renderItemAndEffectIntoGUI(stack, x, y); itemRender.renderItemOverlayIntoGUI(font, stack, x, y, altText); } zLevel = 0.0F; itemRender.zLevel = 0.0F; RenderHelper.enableStandardItemLighting(); } This method also works fine, but not for the dark oak door. Here is the log: Why does this error happen and how can I fix it?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.