Jump to content

[1.8] acceptedMinecraftVersions documentation


LordMastodon

Recommended Posts

I've been searching, but I can't find any documentation for acceptedMinecraftVersions in the @Mod @interface. I read in the @Mod class that it's recommended to set it, so I looked at the code for Thermal Foundation to see if and how they set it, seeing as how I've got great coding respect for TeamCOFH, but they've set it for 1.7.10 and I'm not sure if it's changed in between 1.7.10 and 1.8. Any help would be greatly appreciated.

Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*.

 

Also this. Check it out.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Link to comment
Share on other sites

Look at the doc comment for the

VersionRange.createFromVersionSpec

method, which is used to parse the

acceptedMinecraftVersions

field.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Why does nobody ever look into code anymore? Oh, wait - you looked. :D

 

/**
     * The acceptable range of minecraft versions that this mod will load and run in
     * The default ("empty string") indicates that the currently RUNNING minecraft version is acceptable.
     * This means ANY version that the end user adds the mod to. Modders PLEASS set this.
     * FML will refuse to run with an error if the minecraft version is not in this range across all mods.
     * @return A version range as specified by the maven version range specification or the empty string
     */
    String acceptedMinecraftVersions() default "";

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Why does nobody ever look into code anymore?

 

/**
     * The acceptable range of minecraft versions that this mod will load and run in
     * The default ("empty string") indicates that the currently RUNNING minecraft version is acceptable.
     * This means ANY version that the end user adds the mod to. Modders PLEASS set this.
     * FML will refuse to run with an error if the minecraft version is not in this range across all mods.
     * @return A version range as specified by the maven version range specification or the empty string
     */
    String acceptedMinecraftVersions() default "";

 

I have looked at that code, and that's the reason I even knew to specify the acceptedMinecraftVersions, but I'm not quite sure what you're trying to convey with that message. Some clarification would be nice.

 

Look at the doc comment for the

VersionRange.createFromVersionSpec

method, which is used to parse the

acceptedMinecraftVersions

field.

 

Thank you, that helped tremendously.

Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*.

 

Also this. Check it out.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

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.