Jump to content




What happened to the @API annotations?


  • You cannot reply to this topic
3 replies to this topic

#1 ElvishJerricco

  • Members
  • 803 posts

Posted 10 October 2014 - 10:18 PM

In the beta discussion thread, Dan said he added API annotations. Those don't appear to be present.

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 October 2014 - 01:20 AM

what are you talking about, they're eel and truly present in 1.64 and 1.65!

@API annotations can only occur once in a package, and the annotation has to happen at the package level, as such people define a new file 'package-info.java', which Forge looks for.

#3 ElvishJerricco

  • Members
  • 803 posts

Posted 11 October 2014 - 03:26 AM

View Posttheoriginalbit, on 11 October 2014 - 01:20 AM, said:

what are you talking about, they're eel and truly present in 1.64 and 1.65!

@API annotations can only occur once in a package, and the annotation has to happen at the package level, as such people define a new file 'package-info.java', which Forge looks for.

Ah! Sorry I misunderstood how the @API annotation worked. Haven't worked with 1.7 until now.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 11 October 2014 - 03:41 AM

the @API annotation has been present since at least Minecraft 1.6... it's quite a powerful tool!

Edited by theoriginalbit, 11 October 2014 - 03:41 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users