code: public static boolean isPowered(IBlockState state)
  	{
  		PowerComponent pc = IComponent.getComponent(PowerComponent.class, state.getBlock());
  		if (pc == null)
  			return false;
  
  		PropertyBool property = pc.getProperty();
  		if (property == null || !state.getProperties().containsKey(property))
  			return false;
  
  		return state.getValue(property);
  	}
docs: Checks if is powered of this {@link IBlockState}.
  
  @param state the state
  @return true, if is powered