Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Befell

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Befell

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I am trying to render an item in a container. I have found that Minecraft.getMinecraft().fontRenderedObj.drawString() works but I do not know how to do the correct x and y. Someone had made this code, the position is right but only works in chests. int guiLeft = (guiContainer.width - 176) / 2; int inventoryRows = inventory.getSizeInventory() / 9; int ySize = 222 - 108 + inventoryRows * 18; int guiTop = (guiContainer.height - ySize) / 2; int slotX = (int) ((guiLeft + inventorySlot.xDisplayPosition) / scaleFactor); int slotY = (int) ((guiTop + inventorySlot.yDisplayPosition) / scaleFa
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.