Class BlockAttachable

Direct Known Subclasses:
BlockButton, BlockLever

public class BlockAttachable extends BlockNeedsAttached
  • Constructor Details

    • BlockAttachable

      public BlockAttachable()
  • Method Details

    • setAttachedFace

      public void setAttachedFace(org.bukkit.block.BlockState state, org.bukkit.block.BlockFace attachedFace)
      Sets which face is attached to the adjacent block.
      Parameters:
      state - this block's BlockState
      attachedFace - the face to attach
    • getAttachedFace

      protected org.bukkit.block.BlockFace getAttachedFace(GlowBlock me)
      Overrides:
      getAttachedFace in class BlockNeedsAttached