Module gomint.api

Interface BlockBed

  • All Superinterfaces:
    Block

    public interface BlockBed
    extends Block
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • getColor

        BlockColor getColor()
        Get the color of this bed
        Returns:
        color of this bed
      • setColor

        void setColor​(BlockColor color)
        Set the color of this bed
        Parameters:
        color - which should be used from now on
      • getOtherHalf

        BlockBed getOtherHalf()
        Get the other half of this multi block structure,
        Returns:
        the other half of the bed or null when no other half has been found
      • isHeadPart

        boolean isHeadPart()
        Is this block the head part of this multi block structure?
        Returns:
        true if this is the head part, false if not
      • setHeadPart

        void setHeadPart​(boolean value)
        Set this as top part of the multi block
        Parameters:
        value - if the block is head or not