Solved Set a location to a block

Discussion in 'Plugin Development' started by TheDiamond06, Mar 29, 2015.

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

    TheDiamond06

    So I have a set of Location variables that I would like to turn those locations into blocks. I have looked at many different methods, and cannot find a way to do this. Is there any way?
     
  2. Offline

    xTigerRebornx

    @TheDiamond06 You must have not done any looking at all. There is a getBlock() method for Location.
     
  3. Offline

    nverdier

    @TheDiamond06
    1) Iterate through the set.
    2) Location#getBlock()#setType(Material)
     
  4. Offline

    TheDiamond06

    @xTigerRebornx Wasn't looking through the location methods, that's probably why. Thanks however
     
Thread Status:
Not open for further replies.

Share This Page