Reflection?

Discussion in 'Plugin Development' started by rangersmash, Jan 25, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    rangersmash

    Hi guys,

    I was wondering how I would go about using NMS code to override AI e.t.c. but make it update proof and so I don't need to update every version? I believe it's called reflection, but any help would be appreciated.

    Thanks
    -rangersmash
     
  2. Offline

    Weasel_Squeezer

    It will never be update proof. When you are accessing Minecraft server code directly through reflection and not through the Bukkit API, it is likely that you will have to update your code or at least test it for every version.
    EDIT: but as far as using reflection goes, its not too hard, just really hacky.
    I recommend reading the java Oracle Java tutorials: http://docs.oracle.com/javase/tutorial/reflect/
     
Thread Status:
Not open for further replies.

Share This Page