Jump to content

[1.7.10] Can't figure out IItemRenderer


61352151511

Recommended Posts

So I'm trying to make my item render as paper, and then on top of that it will render a half sized version of whatever item it was crafted with (Sugar if it's blank) However I can't figure out what to call to get it to render something there, whatever I try it messes up in one way or another, if someone can give an example or point me to a tutorial on how I could do something like that, that would be nice.

 

public class FoodprintRenderer implements IItemRenderer {

private ItemRenderer render;
private ItemStack paper;

public FoodprintRenderer(Minecraft mc) {
	render = new ItemRenderer(mc);
	paper = new ItemStack(Items.paper);
}

@Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { return true; }
@Override public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return true; }

@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
	// Paper
	// Small Sugar
}
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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