Solved Reflection tutorials

Discussion in 'Plugin Development' started by KingFaris11, Aug 8, 2014.

Thread Status:
Not open for further replies.
  1. Hey, I've been programming using the Bukkit API for around 3 years now and Java for 5 years, but I've never actually got the chance to learn Reflection in Java. I want to now learn Reflection as I have the summer, and it'll be useful in some of my projects. Are there any tutorials out there, specifically for Bukkit please (not general Java as I don't require it elsewhere at all). I already know the basics, about Method, Field, setAccessible(true), etc. I just don't know how to call methods with no parameters, etc.
     
  2. Offline

    number1_Master

    Faris, why you no ask me personally D:
     
    KingFaris11 likes this.
  3. Offline

    mazentheamazin

    KingFaris11
    Mainly JavaDocs should do it, if there's a method that you don't know how to apply the Oracle tutorials should help you there. Currently there isn't a need nor is there a tutorial on Reflection 'for bukkit', it is always suggested if possible to learn how a concept without Bukkit so you can use and apply it outside of Bukkit.
     
  4. True - but like - CraftBukkit don't have any comments in its SRC for the variable names, as the variable names are weird (like obfuscated), e.g. "boolean k". So I just want to see cool stuff you can do with it, and learn from it.
     
  5. Offline

    fireblast709

    KingFaris11 likes this.
  6. Offline

    MrSparkzz

    KingFaris11 likes this.
  7. Thanks - but like... how do people know what variables do what in CraftBukkit? Do they just experiment, or checking the usage?

    Again - thanks :D I prefer videos rather than reading, reading is boring as it's not interactive I guess.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  8. Offline

    fireblast709

    KingFaris11 it's where the reasoning part comes into play. They don't read it as a single value, but as a value in context.

    What kind of values does it get assigned to? When does it get assigned/used?
     
    KingFaris11 likes this.
  9. Offline

    ResultStatic

    KingFaris11 there are basically no tutorials on nms you will have to read and Google for answers
     
  10. This isn't just NMS - it's reflection - but yeah. Okay - I found one by Myles or whatever, but his is 1 year old so may be outdated.
     
  11. Offline

    xTrollxDudex

    It's not like watching a screen move is interactive either
     
    MrSparkzz likes this.
  12. Are you implying youtube tutorials for programming is people using notepad and typing there to help you? No. The people talk. E.g. thenewboston, TheChernoProject, etc. They often crack jokes here and there too. Much better than reading lines of boring explanation.
     
    thomasb454 and Marten Mooij like this.
  13. Offline

    _Filip

  14. Offline

    xTrollxDudex

    Touché
     
    KingFaris11 likes this.
Thread Status:
Not open for further replies.

Share This Page