Code help...

Discussion in 'Spigot Plugin Development' started by Swiffz, Jun 4, 2015.

  1. Hey,

    I'm creating a custom terrain plugin, and when I using words like
    Code (Text):
    blocks[this.coordsToInt(x, 0, z)] = (byte) Material.BEDROCK.getId();
    I'm getting this
    [​IMG]
    crossed out (Unsed) anyone have that problem?
     
  2. try getData() for getting the byte
     
    • Like Like x 1
  3. Thats fine, just ignore it.
     
    • Agree Agree x 1
  4. That's just fine, there is no other option. The crossed out thing means that its deprecated, but it will not be removed, because the api is not fully updated yet.

    You can put @SuppressWarnings("deprecation") on top of that method to remove that crossed out thing if you want.
     
    • Useful Useful x 1
  5. Okay cool, Thanks peeps! <3