src/main/java/com/greghaskins/spectrum/internal/configuration/ConfiguredBlock.java
/**
   * Provide any configuration data for this child's block or the default.
   * @param block the block which may have configuration data
   * @return a non null {@link BlockConfiguration} object to use
   */
Provide any configuration data for this child's block or the default.
@param block the block which may have configuration data
@return a non null  BlockConfiguration object to use
Provide any configuration data for this child ' s block or the default . @param block the block which may have configuration data @return a non null BlockConfiguration object to use
public static BlockConfiguration configurationFromBlock(final Block block) {
    if (block instanceof ConfiguredBlock) {
      return ((ConfiguredBlock) block).getConfiguration();
    } else {
      return BlockConfiguration.defaultConfiguration();
    }
  }
public static BlockConfiguration configurationFromBlock ( final Block block ) { if ( block instanceof ConfiguredBlock ) { return ( ( ConfiguredBlock ) block ) . getConfiguration ( ) ; } else { return BlockConfiguration . defaultConfiguration ( ) ; } }
Provide any configuration data for this child's block or the default.
Provide any configuration data for this child ' s block or the default .