Help with BlockData

Discussion in 'Plugin Development' started by greaperc4, Oct 9, 2013.

Thread Status:
Not open for further replies.
  1. Hi there,

    My plugin called: MagicStaff, uses: block.getdata / block.setdata
    But they are Deprecated, my question is:
    1. Why are they Depricated,
    2. Is there a another way to get the blockdata?

    Regards,
    Greaperc4
     
  2. greaperc4 My guess is that it's another case of let's-remove-the-magic-values. It's the same with the item id's.
     
  3. I know, I had already seen that :p
    But now I don't have my answer on my 2nd question.
     
  4. greaperc4 They're deprecated but still work, for now....
     
  5. I know, but is there also a another way to get the Data of a block
     
  6. I don't like the Yellow colors, and I don't like to suppress at each "setData"
    well, there is a Little solution you can use:

    Make a Methode, put there your setData and you have to suppress only 1 line :)
     
    Mathias Eklund likes this.
Thread Status:
Not open for further replies.

Share This Page