Direction of blocks

Discussion in 'Plugin Development' started by Raandom, Dec 28, 2011.

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

    Raandom

    Hey guys,
    at the moment im learning how to work with bukkit/spout and in my last test addon i got a problem...how can i find out in which direction a (custom block, but a solution with a normal block would be enough i think...) block faces?
     
  2. Offline

    halley

    block orientation data is particular to the kind of block; like signs or jackolanterns or fences
     
  3. Offline

    bergerkiller

    Yup, you need to use the block data part to get the directional data. Easiest would be to implement the 'Directional' interface and construct a material data extending class for your own block type.

    However, I am not sure if Spout allows you to add custom material data types, which can be retrieved using material.getNewData(byte).
     
Thread Status:
Not open for further replies.

Share This Page