Jump to content

Why use an mcmod.info file when data could be included in the code?


Recommended Posts

Posted

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Posted

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

I had a mess around with it, also with DummyContainer, and didn't have much luck.

 

 

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Ahh. Do you have any ideas on how I would include the metadata in the code anyway?
Posted

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

I had a mess around with it, also with DummyContainer, and didn't have much luck.

 

 

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Ahh. Do you have any ideas on how I would include the metadata in the code anyway?

 

I'm always using the mcmod.info file, so I don't know.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

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.