Jump to content

Recommended Posts

Posted

My 

public void addInformation

method isn't working, and it's not adding any lore to my item.

Here's the code in two different pastebins:

Method: https://pastebin.com/wMNSDrhp

Full Class: https://pastebin.com/Eitecz3D

 

Any help would be nice, and I'm using Eclipse.

(No errors either)

Posted
8 minutes ago, Synoot said:

Here's the code in two different pastebins:

Method: https://pastebin.com/wMNSDrhp

Full Class: https://pastebin.com/Eitecz3D

Both of these links are not working for me, could you please post the code in this post using the code button looks like this <>

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
Just now, Synoot said:

MC 1.12.2

Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature.

addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn)

 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
Just now, Animefan8888 said:

Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature.


addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn)

 

hmm... ok, I'll try that

Posted
19 minutes ago, Animefan8888 said:

Eclipse should be yelling at you about your @Override annotation. You don't have the proper method signature.


addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn)

 

Eclipse was yelling at me to change it to void, or change it to a constructor

ItemTape(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
    	tooltip.add("Test");
	}

Honest, I probably did something wrong.

Posted
3 minutes ago, Synoot said:

Eclipse was yelling at me to change it to void, or change it to a constructor

It is a void method not a constructor. I was just trying to give you the parameters.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
1 minute ago, Synoot said:

Still, the tooltip wasn't showing, but I'm not sure if i need to add it to main to initalize it, I've been looking and nothing's come up.

I'm not sure you understood me this is the full method.

public void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {}

 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted (edited)

It works now, for some reason there were some bits of text that I couldn't see in Eclipse. Thanks for the help.

Edited by Synoot

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.