Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void drawSlot(MatrixStack matrix, ItemStack item, int xPos, int yPos, int mouseX, int mouseY) {
- getMinecraft().getTextureManager().bindTexture(slotImage);
- drawTexture(matrix, xPos, yPos, 0, 0, 20, 20, 20, 20);
- getMinecraft().getItemRenderer().renderInGui(item, xPos + 2, yPos + 2);
- if (mouseX >= xPos && mouseY >= yPos && mouseX <= xPos + 20 && mouseY <= yPos + 20) {
- renderTooltip(matrix, item, mouseX, mouseY);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement