What do I do now ?

Discussion in 'Plugin Development' started by greaperc4, Sep 11, 2013.

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

    greaperc4

    How to fix this on the New Craftbukkit R1.0 version.
    Now the getTargetBlock() has been removed .. what do I put here instead ??
    Ans same for the .setData() for a block.

    Thanks, greaperc4
     
  2. Offline

    xDeeKay

    greaperc4 Wrong section, but maybe getLineOfSight() ?
     
  3. Offline

    greaperc4

    that one doesn't work either.. also outdated
     
  4. Offline

    Necrodoom

    Moved to correct section.
     
  5. Offline

    xDeeKay

    Well I'll be damned. I'm not too sure then, sorry!
     
  6. Offline

    metalhedd

    the methods work perfectly fine, they're just deprecated. you have to continue to use them for now since there are no alternatives.
     
  7. Offline

    greaperc4

    but now my whole class looks yellow xD..
     
  8. Offline

    metalhedd


    Your IDE has options to get around that. it's not hurting anything anyway
     
  9. Offline

    greaperc4

    Which options.. btw, I use, Eclipse Kepler.
     
  10. Offline

    Chinwe

    greaperc4
    If you hover over the error, it should offer to @SuppressWarnings for the class/method
     
  11. Offline

    greaperc4

    so that only removes the warning right ?.. not that it disables all of it?
     
  12. Offline

    Chinwe


    It will just hide it, so your workspace isn't spammed with yellow strikethroughs :)
     
Thread Status:
Not open for further replies.

Share This Page